"is" and "=="

John Hunter jdhunter at ace.bsd.uchicago.edu
Tue Mar 11 12:41:51 EST 2003


>>>>> "Thomas" == Thomas Wouters <thomas at xs4all.net> writes:

    Thomas> There are very few uses of 'is' in normal user code...
    Thomas> (much like 'from module import *' :)

What about 

if x is None: do_something()

I use that all the time.

John Hunter






More information about the Python-list mailing list