[Python-Dev] bool conversion wart? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 23 11:52:51 CET 2007
- Previous message: [Python-Dev] bool conversion wart?
- Next message: [Python-Dev] bool conversion wart?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] bool conversion wart?
- Next message: [Python-Dev] bool conversion wart?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]