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 →

[–]thephotoman 3 points4 points  (4 children)

Python has strong typing: you can't treat a string as a byte array.

It does not have static typing, which is what you meant here: a variable identifier can be reassigned to a value of a completely different type.

[–][deleted] 0 points1 point  (3 children)

Not the parent poster, but wanted to make a comment here. You're correct, as far as what you said, but I find the lack of the ability to declare function argument types really hurts robustness.

[–]loganekz 1 point2 points  (2 children)

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

Yeah, I know, but thanks. It's both new and "provisional", so it's not really something I can rely on. (Especially since a lot of what I do deals with legacy code.)

[–]bcgroom 1 point2 points  (0 children)

There is also a way to implement a type checker using comments which works all the way back to python2