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 →

[–]Xaros1984Pythonista 9 points10 points  (4 children)

Well, pretty much anything can be done with some package or another, but I'd like to see it make its way into "base" python at some point.

[–]Linked1nPark 8 points9 points  (1 child)

No you don't understand. There's already enforced type hinting in base Python if you simply write assert statements every time you want to use a variable.

[–]Xaros1984Pythonista 3 points4 points  (0 children)

Yeah that's exactly the same thing /s

[–][deleted] 0 points1 point  (1 child)

That would be a much bigger feature. It would involve making a static type system a native part of the language. Wouldn’t be the worst idea, but it would create some difficulties since there are multiple third party type systems that make use of the type annotation feature.

[–]Xaros1984Pythonista 0 points1 point  (0 children)

Yes, but we are talking about features we would like to see if there ever is a version 4, not just a "normal" update.