Python23: cannot inherit from bool?
FrankS
franks at mcs.anl.gov
Tue Jan 14 21:12:40 EST 2003
It seems that 2.3 doesn't allow you to inherit from bool:
Python 2.3a1 (#38, Dec 31 2002, 17:53:59) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class C(bool): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: type 'bool' is not an acceptable base type
>>>
Could someone explain the reason for this restriction?
Thanks, Frank.
More information about the Python-list
mailing list