equivalent of NULL or OM in Python

Tim Peters tim.one at home.com
Fri Feb 16 16:51:13 EST 2001


[Daniel Klein]
> ...
> In Python, when an object has not been initialized, it is set to
> 'None' (quotes are for clarity),

No.  An unbound variable is not bound to anything; that's why it's called
unbound <0.9 wink>.  Attempting to reference an uninitialized variable in
Python raises an exception (a subclass of NameError).





More information about the Python-list mailing list