[Python-Dev] bool conversion wart? (original) (raw)

skip at pobox.com skip at pobox.com
Sat Feb 24 23:02:04 CET 2007


Neal> Except, all the numeric types do, including int, float, and
Neal> complex.  But not bool.  

The fact that bool is a subclass of int is more historic than necessary. If not for Python's long usage of 0 and 1 to be the canonical False and True, I suspect that bool might have been implemented as a new standalone type.

Skip



More information about the Python-Dev mailing list