1 > 0 == True -> False

Thibault Langlois thibault.langlois at gmail.com
Thu Jan 30 06:36:53 EST 2014


Hello,

$ python
Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 > 0 == True
False
>>> (1 > 0) == True
True
>>> 1 > (0 == True)
True
>>>

What am I missing here ?

T.



More information about the Python-list mailing list