bool behavior in Python 3000?

Alan Isaac aisaac at american.edu
Wed Jul 11 14:59:49 CEST 2007


Miles wrote:
> What boolean operation does '-' represent?

Complementation.
And as usual, a-b is to be interpreted as a+(-b).
In which case the desired behavior is
 False-True = False+(-True)=False+False = False

In response to Stargaming, Steve is making
a point about the incoherence of certain arguments,
not proposing an implementation.

Cheers,
Alan Isaac



More information about the Python-list mailing list