Isn't None supposed to be false?

Albert Wagner alwagner at tcac.net
Tue May 2 23:24:33 EDT 2000


>>> x = None
>>> if x:
...     print 'false'
... else:
...     print 'true'
...
true
>>> if x == None:
...     print 'false'
... else:
...     print 'true'
...
false                     
-- 
Small is Beautiful



More information about the Python-list mailing list