Python types

Steve M sjmaster at gmail.com
Fri Mar 24 15:06:43 EST 2006


I think it means that names, not objects, are weakly typed. So you can
have:
a = 4
a = 'hello'

and there is no problem. The name 'a' doesn't have any type associated
with it. This contrasts with strongly typed language like C where you
declare the type of the name (variable) and the compiler objects at
compile time if you attempt to assign a value of a different type.




More information about the Python-list mailing list