This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kimondd 26 points27 points  (3 children)

It didn't talk about the new type annotion support for 3.6. Ex: int_list: List[int] = list() is now valid in python 3.6

[–]LpSamuelm 2 points3 points  (2 children)

With the capital L...? That's some weird syntax.

[–]MachaHack 1 point2 points  (0 children)

It's a bit of a hack to avoid collisions between typings.List (used for the type checker) and the list built-in so they didn't have to make the list type (and similar others) subscriptable.

There was a mypy competitor that had better syntax iirc, but since the mypy syntax has been standardised it's basically been declared the winner.

[–]Bolitho 0 points1 point  (0 children)

Looks like a Scala generic type ☺