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

Andrew Koenig ark at research.att.com
Sat Mar 30 10:56:15 EST 2002


>> 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 at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list