[Python-ideas] XOR

Sturla Molden sturla at molden.no
Tue Oct 27 23:41:17 CET 2009

Why does Python have a bitwise but not a logical xor operator? It's even 
weirder because boolean objects do have a __xor__ method.

Does Py3k have an xor keyword? (I am using 2.6 due to NumPy.)

(Yes I know BDFL is planning a moratorium on syntax.)

More information about the Python-ideas mailing list