Re:Python’s “type hints” are a bit of a disappointment to me
by d0mine on Thursday April 21, 2022 @10:29PM
(#31117567)
Don't confuse strong typing and static typing.
Python is strongly typed. It respects types at runtime e.g., `"1"+1` causes TypeError.
Python is not statically typed.
For comparison, C is statically typed but it is weakly typed e.g., printf function has no idea about actual types of its arguments (in particular, errors in the format arg may produce non-sensical results silently).
Python is strongly typed. It respects types at runtime e.g., `"1"+1` causes TypeError. Python is not statically typed.
For comparison, C is statically typed but it is weakly typed e.g., printf function has no idea about actual types of its arguments (in particular, errors in the format arg may produce non-sensical results silently).