subclassable types

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Fri Feb 22 10:35:25 CET 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