"0 in [True,False]" returns True

Robin Becker robin at SPAMREMOVEjessikat.fsnet.co.uk
Tue Dec 13 04:54:29 EST 2005


Carsten Haese wrote:
.......
> 
> Where/how did you search? http://docs.python.org/lib/typesseq.html
> states unambiguously that "x in s" returns "True if an item of s is
> equal to x, else False"
.....

exactly and I see

 >>> 0==False
True
 >>>

so I guess nothing is wrong :)
-- 
Robin Becker



More information about the Python-list mailing list