bool behavior in Python 3000?
Alan G Isaac
aisaac at american.edu
Tue Jul 10 15:02:29 EDT 2007
Peter Otten wrote:
> The last I have seen is
> http://mail.python.org/pipermail/python-3000/2007-January/005284.html
OK. Thanks.
> Do you care to explain what is broken?
I suppose one either finds coercion of arithmetic operations to int
to be odd/broken or does not. But that's all I meant.
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
In contrast with the link above,
it does not bother me that arithmetic with ints and bools
produces ints.
Cheers,
Alan Isaac
More information about the Python-list
mailing list