missing 'xor' Boolean operator

Paul Rubin http
Wed Jul 15 13:25:25 EDT 2009


Hrvoje Niksic <hniksic at xemacs.org> writes:
> > While everyone's trying to tell the OP how to workaround the missing
> > xor operator, nobody answered the question "why is there no [boolean]
> > xor operator ?".
> 
> Probably because there isn't one in C.  The bitwise XOR operator, on the
> other hand, exists in both C and Python.

A non-bitwise XOR really sounds almost useless.



More information about the Python-list mailing list