xor operator
Barry
barry at barrys-emacs.org
Mon Nov 13 12:42:14 EST 2023
> On 13 Nov 2023, at 15:16, Dom Grigonis via Python-list <python-list at python.org> wrote:
>
> I think it could be useful to have `xor` builtin, which has API similar to the one of `any` and `all`.
I do not understand how xor(iterator) works.
I thought xor takes exactly 2 args.
I also do not understand how xor can be short circuited.
For AND or OR only looking at the first arg works.
But that does not work for xor right?
Barry
More information about the Python-list
mailing list