xor operator?
Aahz Maruch
aahz at panix.com
Fri Jan 26 10:56:00 EST 2001
In article <mailman.980517875.10931.python-list at python.org>,
Thomas Wouters <thomas at xs4all.net> wrote:
>
>What construction do you need the boolean xor operation for ? Isn't it more
>obvious to use an if/elif/else contstruction ?
In my case, it was to ensure that one-and-only-one variable was set in a
Token class. Okay, so it was a little cutesy and not particularly
generalizable, but it was the most compact way of representing the
actual control flow at that point.
--
--- Aahz (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
'I'm not in the mood to say "yes" today.' --SJM
More information about the Python-list
mailing list