When to use None

stevie_deja at my-deja.com stevie_deja at my-deja.com
Tue Feb 1 13:50:08 EST 2000


Would anyone explain to me where there is a difference between the
following two calls:

if some_var == None :  print 'var is none'

if some_var is None :  print 'var is none'

Can '== None' only be used in certain circumstances?

Thanks,
Steve


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list