subclassable types

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Fri Feb 22 04:35:25 EST 2013


Dear all,
I am wondering what the rules are that determine whether a built-in type is
subclassable or not.
As examples, why can you base your classes on int or set,
but not on bool or range?
Also: can you use introspection to find out whether a type is valid as a
base type?
Thanks for your help!





More information about the Python-list mailing list