[Python-ideas] Should bool continue to inherit from int?
tjreedy at udel.edu
Wed Jan 21 23:21:45 CET 2015
On 1/21/2015 6:32 AM, Michael Mitchell wrote:
> PEP 285 <http://legacy.python.org/dev/peps/pep-0285> provides some
> justification for why arithmetic operations should be valid on bools and
> why bool should inherit from int (see points (4) and (6) respectively).
> Since it's been 12 years (it's possible this has been brought up again
> between now and then), I thought it could be worthwhile to take another
> I am mostly interested in a resurveying of the questions:
> 1) Would it still be very inconvenient to implement bools separately
> from ints?
> 2) Do most Python users still agree that arithmetic operations should be
> supported on booleans?
python-list would be a better place for this discussion.
Terry Jan Reedy
More information about the Python-ideas