[Python-Dev] bool conversion wart?

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 23 11:52:51 CET 2007


Neal Becker wrote:
> The fact that other numeric
> types act this way leaves a reasonable expectation that bool will.

But bool isn't really a numeric type in the same way
that the others are. It's only a subtype of int for
historical reasons. If it had been a part of Python
from the beginning, it probably would have been a
separate type altogether.

Hmmm... is that something that should be revisited
in 3.0?

--
Greg


More information about the Python-Dev mailing list