isinstance(False, int)

mk mrkafk at gmail.com
Fri Mar 5 13:32:32 EST 2010


Arnaud Delobelle wrote:

>>>> 1 == True
> True
>>>> 0 == False
> True
> 
> So what's your question?

Well nothing I'm just kind of bewildered: I'd expect smth like that in 
Perl, but not in Python.. Although I can understand the rationale after 
skimming PEP 285, I still don't like it very much.


Regards,
mk





More information about the Python-list mailing list