Does Python need an 'xor' operator?
Martin v. Loewis
martin at v.loewis.de
Sat Apr 13 19:09:44 EDT 2002
"Ken Peek" <Ken.Peek at SpiritSongDesigns.comNOSPAM> writes:
> You didn't read my post well enough-- we can already _DO_
> that with Python v2.2.x:
I read your post. You said that the idiom you bring up is not clear to
you; I agree - adding a "not" just to get a 0/1 value is not clear.
To me, using a function called "bool" is very clear.
> Everyone_is_entitled_to_have_my_opinion'ly yours,
Certainly. Did I suggest otherwise?
Regards,
Martin
More information about the Python-list
mailing list