xor operator?

Michael Hudson mwh21 at cam.ac.uk
Fri Jan 26 08:56:11 EST 2001


Def P <def-p at usa.net> writes:

> I notice that there doesn't seem to be a boolean xor operator in
> Python. Does someone know the reasons behind this?

I suspect largely because C doesn't have one (do any reasonably
mainstream languages have one?  I can't think of any).  There was a
thread about this fairly recently that shouldn't be too hard to dig
up...

Cheers,
M.

-- 
  The ability to quote is a serviceable substitute for wit.
                                                -- W. Somerset Maugham



More information about the Python-list mailing list