[Python-Dev] For review: PEP 285: Adding a bool type (original) (raw)
Guido van Rossum guido@python.org
Fri, 08 Mar 2002 13:26:14 -0500
- Previous message: [Python-Dev] For review: PEP 285: Adding a bool type
- Next message: [Python-Dev] For review: PEP 285: Adding a bool type
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This may be a minor issue, but this proposal will break code like
daysfeb = 28 + isleapyear(year) assuming that booleans cannot be added to ints. :-)
Re-read the PEP. bool subclasses int. 28 + True equals 29.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] For review: PEP 285: Adding a bool type
- Next message: [Python-Dev] For review: PEP 285: Adding a bool type
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]