Boris Borcic bborcic at gmail.com
Mon Nov 26 16:15:25 CET 2007

hdante at gmail.com wrote:
> def xor(a, b):
> 	return a and not b or b and not a

 >>> from operator import xor
 >>> help(xor)
Help on built-in function xor in module operator:

     xor(a, b) -- Same as a ^ b.

More information about the Python-list mailing list