missing 'xor' Boolean operator

Nobody nobody at nowhere.com
Thu Jul 16 22:29:07 CEST 2009

On Wed, 15 Jul 2009 18:14:10 +0200, Hrvoje Niksic wrote:

>> If the question was "Why is there no 'or' operator ?", would "because
>> A or B <=> not(not A and not B)" be a proper answer ?
> Note that in Python A or B is in fact not equivalent to not(not A and
> not B).

Ah, but it *is* "equivalent"; it isn't "identical", but that's not the

More information about the Python-list mailing list