xor operator

Axel Reichert mail at axel-reichert.de
Mon Nov 13 16:23:53 EST 2023


Barry <barry at barrys-emacs.org> writes:

> I do not understand how xor(iterator) works.
> I thought xor takes exactly 2 args.

See

  https://mathworld.wolfram.com/XOR.html

for some background (I was not aware of any generalizations for more
than 2 arguments either).

> I also do not understand how xor can be short circuited.

Me neither, but that could be related to the meaning of n (which I did
not get) in the OP's question. Maybe he can clarify.

Best regards

Axel


More information about the Python-list mailing list