missing 'xor' Boolean operator
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Thu Jul 16 04:19:21 EDT 2009
On Thu, 16 Jul 2009 09:43:53 +0200, Hendrik van Rooyen wrote:
> "Hrvoje Niksic" <hniksic at x..s.org> wrote:
>
>
>> Note that in Python A or B is in fact not equivalent to not(not A and
>> not B).
>
> De Morgan would turn in his grave.
No he wouldn't. Python isn't Boolean algebra, and there is no requirement
to limit Python's operators to the semantics of Boolean algebra.
--
Steven
More information about the Python-list
mailing list