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

Guido van Rossum guido at python.org
Sat Mar 30 08:47:33 EST 2002


[David Abrahams]
>       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.

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

Anyway, do you have a use case where it matters?

--Guido van Rossum (home page: http://www.python.org/~guido/)




More information about the Python-list mailing list