Question about 'None'

flamesrock flamesrock at gmail.com
Fri Jan 28 01:58:24 CET 2005


Wow! Thanks for all the replies. I'll have to reread everything to
absorb it.

The test code is pretty simple:
if 2 > None:
print 'true'
else:
print 'false'

It prints false every time. I should also mention that I'm using
version 2.0.1 (schools retro solaris machines :( )
At home (version 2.3.4) it prints out 'True' for the above code block.




More information about the Python-list mailing list