4 ms·
Just to clarify, Python has always been strongly typed. Every object has to have an explicit concrete type. However this type is only known at runtime and varia
by ChrisSD 7y ago
Just to clarify, Python has always been strongly typed. Every object has to have an explicit concrete type. However this type is only known at runtime and variables can be bound to any type of object. Aka dynamic typing.
What the "whole Type thing" adds is type hints. That is to say they tell the programmer what types are expected. These hints can also be used in static analysis to try to restrict the types that can be bound to any particular variable. This can be useful to detect bugs in large code bases.