Which is more correct for compaing to None?

63.199.26.230 63.199.26.230
Sat May 12 20:10:14 EDT 2001


Both of these seem to work. Which is more correct?

if foo is None:
    print 'is'

if foo == None:
    print '=='

Yours,
Noah



==================================
Poster's IP address: 63.199.26.230
Posted via http://nodevice.com
Linux Programmer's Site



More information about the Python-list mailing list