"0 in [True,False]" returns True

Paul Rubin http
Tue Dec 13 04:03:41 EST 2005


Steve Holden <steve at holdenweb.com> writes:
> The really interesting question your post raises, though, is "Why do
> you feel it's necessary to test to see whether a variable is a
> Boolean?".

What's the point of having Booleans, if you can't tell them from integers?



More information about the Python-list mailing list