[Python-ideas] XOR

Sturla Molden sturla at molden.no
Wed Oct 28 00:13:45 CET 2009

Dj Gilcrease skrev:
> No the proper syntax is
>>>> False ^ False

I think you are missing the point: ^ is bitwise or. Don't think we can 
always go from bitwise to boolean operator by casting to bool. Xor is a 
special case.

 >>> bool(not True)
 >>> bool(~True)


More information about the Python-ideas mailing list