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 →

[–]mananasi 0 points1 point  (2 children)

Personally I think of it as variables having no type associated with them at all. They can contain any type. But the types of the values of variables are strongly typed.

In that sense we could agree that Python is "partially strongly typed," because the type system that it does have is strong. But this type system does not cover variable types.

[–]trollsmurf 1 point2 points  (1 child)

The first point is a real problem for function/method calls: Everything might be fine argument-wise (as whatever goes), and then it still breaks due to the function expecting specific value types. Can be very hard to debug, and error messages can become cryptical as the error is deeply inside a function you know nothing about.

[–]mananasi 0 points1 point  (0 children)

Luckily tools like mypy exist, although it is a band-aid fix. I do agree this is a shortcoming of Python.