Difference between 'is' and '=='

Jon Ribbens jon+usenet at unequivocal.co.uk
Mon Apr 3 10:58:13 EDT 2006


In article <e0rbun$70g$1 at panix2.panix.com>, Roy Smith wrote:
> This may even be useful.  What if you were trying to emulate SQL's
> NULL?  NULL compares false to anything, even itself.

Strictly speaking, comparing NULL to anything gives NULL, not False.



More information about the Python-list mailing list