Curious relation

Greg J greg.jandl at gmail.com
Thu Apr 24 06:51:36 CEST 2008


 I was reading the programming Reddit tonight and came across this
(http://reddit.com/info/6gwk1/comments/):

>>> ([1]>2)==True
True
>>> [1]>(2==True)
True
>>> [1]>2==True
False

Odd, no?

So, can anyone here shed light on this one?



More information about the Python-list mailing list