bool behavior in Python 3000?
Daniel
no at no.no
Tue Jul 10 15:23:07 EDT 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:
>> http://en.wikipedia.org/wiki/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
mailing list