On Fri, 2006-09-22 at 11:25, Saizan wrote:
> Bjoern Schliessmann wrote:
> > Saizan wrote:
> >
> > > Why subclassing bool from int either __invert__ or __neg__ haven't
> > > been overrided to produce a boolean negation?
> >
> > I wonder what -True or -False should evaluate to.
> Well in boolean notation -True == False and  -False == True, actually
> you may prefer ¬ or a line over the term, but since there's no such
> operator in python [...]

It's called "not":

>>> not True
False
>>> not False
True

-Carsten


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to