[Python-Dev] PEP 285: Adding a bool type

Andrew Koenig ark@research.att.com
30 Mar 2002 10:56:15 -0500


>> 6) Should we eventually remove the inheritance relationship
>> between Int and Bool?

>> I hope so. Bool is-a Int doesn't seem like the right relationship to
>> me, unless perhaps we make Int is-a Long... naah, not even then.

Guido> Hm.  In your favorite language bool is one of the integral types.
Guido> Doesn't that imply pretty much the same thing?

What it really implies is that arithmetic operations on bool values
are permitted and promote to int.

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark