3 ms·
Even though dynamically typed, it still have the concept of types. There are good examples on how it works in the PEP.
by oellegaard 13y ago
Even though dynamically typed, it still have the concept of types. There are good examples on how it works in the PEP.
- jerf 13y agoAnd more the the point, Python is strongly typed in the sense that it has very few automatic conversions between types, in contrast to, say, Perl. As the PEP says, this means that you can't accidentally compare an enum value of one type to an enum value of another without a runtime error occurring, instead of an infuriatingly subtle bug. Python may defer its type checking to run time, but it still has it.