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!
-- http://mail.python.org/mailman/listinfo/python-list