Sturla Molden schrieb:
Why does Python have a bitwise but not a logical xor operator?
How often do you need the xor operator?
It's even weirder because boolean objects do have a __xor__ method.
The reason for that is that they inherit from integers. That method is the usual bitwise integer xor.
Does Py3k have an xor keyword? (I am using 2.6 due to NumPy.)