When to use None
Aahz Maruch
aahz at netcom.com
Tue Feb 1 14:10:23 EST 2000
More information about the Python-list mailing list
Tue Feb 1 14:10:23 EST 2000
- Previous message (by thread): When to use None
- Next message (by thread): When to use None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <8779su$sak$1 at nnrp1.deja.com>, <stevie_deja at my-deja.com> wrote: > >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' The latter is faster because it does a direct object comparison rather than going through the conversion. -- --- Aahz (@netcom.com) Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/ Hugs and backrubs -- I break Rule 6 Have a *HAPPY* day!!!!!!!!!!
- Previous message (by thread): When to use None
- Next message (by thread): When to use None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list