Checking for an "undefined" variable - newbie question

Damien Wyart damien.wyart at free.fr
Wed Aug 6 08:24:17 EDT 2003


* Alex Martelli <aleax at aleax.it> in comp.lang.python:
> If you can't rule out (e.g.) None as a valid value for your variable,
> just make a unique placeholder value such as [be sure to use a MUTABLE
> value, else uniqueness is not guaranteed]:

Could you expand on this "uniqueness" point ? I don't see very well what
you mean.


Thanks in advance,
-- 
Damien Wyart




More information about the Python-list mailing list