Isn't bool __invert__ behaviour "strange"?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Sep 22 10:56:37 EDT 2006


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.

Regards,


Björn

-- 
BOFH excuse #297:

Too many interrupts




More information about the Python-list mailing list