bool behavior in Python 3000?
no at no.no
Tue Jul 10 21:23:07 CEST 2007
>> > Do you care to explain what is broken?
>> My preference would be for the arithmetic operations *,+,-
>> to be given the standard interpretation for a two element
>> boolean algebra:
> If I understand this right, the biggest difference from the current
> implementation would be that::
> True + True == True
> instead of:
> True + True == 2
> What's the advantage of that? Could you give some use cases where that
> would be more useful than the current behavior?
I prefer the use of 'and' and 'or', and they feel more pythonic than & and
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the Python-list