[Python-3000] XOR and NOT operator syntax

hashcollision hashcollision at gmail.com
Sat Dec 22 21:15:43 CET 2007


Currently,
True or False
works as expected, but
True xor False
is invalid. I don't see a reason why and, or, not are valid python keywords
but xor is not. Can this be added in python 3.0 for completeness?

Also,
True & False, True | False, True ^ Fals, True != False
works but
!True, !False
dosn't. Again, IMHO this is inconsistent and should be fixed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20071222/1270cee3/attachment.htm 


More information about the Python-3000 mailing list