Rolando Espinoza La Fuente
darkrho at gmail.com
Fri Mar 5 20:01:23 CET 2010
On Fri, Mar 5, 2010 at 2:32 PM, mk <mrkafk at gmail.com> wrote:
> Arnaud Delobelle wrote:
>>>>> 1 == True
>>>>> 0 == False
>> 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.
So, the pythonic way to check for True/False should be:
>>> 1 is True
>>> 0 is False
instead of ==, right?
More information about the Python-list