3>0 is True

Yingjie Lan lanyjie at yahoo.com
Wed Sep 15 08:34:06 EDT 2010


Hi, 

I am not sure how to interprete this, in the interactive mode:

>>> 3>0 is True
False
>>> (3>0) is True
True
>>> 3> (0 is True)
True

Why did I get the first 'False'? I'm a little confused.

Thanks in advance for anybody who shed some light on this. 

YL


      



More information about the Python-list mailing list