[Python-Dev] bool does not want to be subclassed?
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Thu Feb 12 18:02:23 EST 2004
> From: Bob Ippolito
> Probably because bool is supposed to only have two values, True or
As referred to in Tim's reposting of Guido's mind, the important distinction is that bool is only ever supposed to have two *instances* (True and False). The difference between instance and value in this case is important - int can only have values of type integer, but it can have many instances with the same value.
More information about the Python-Dev