This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients daniel.urban, docs@python, terry.reedy
Date 2013-02-24.01:53:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361670781.33.0.576202819259.issue17279@psf.upfronthosting.co.za>
In-reply-to
Content
Such a list might differentiate between classes that are intentionally not subclassed and those for which subclassing simply has not yet been enabled. That might help eliminate the latter list.

When I suggested on the python-ideas 'range' thread that people should best get what they wanted with a range subclass, if that were made possible, Nick C. replied "I wasn't even aware you *couldn't* subclass it (I'd never tried).". Indeed, why would he with no doc.

The types module doc could also use an addition.
Attached subclassable.py produces these lists:
Among named builtin classes, these cannot be subclassed:
bool, memoryview, range, slice, 
Among types classes, these can be subclassed:
ModuleType, SimpleNamespace,
History
Date User Action Args
2013-02-24 01:53:01terry.reedysetrecipients: + terry.reedy, daniel.urban, docs@python
2013-02-24 01:53:01terry.reedysetmessageid: <1361670781.33.0.576202819259.issue17279@psf.upfronthosting.co.za>
2013-02-24 01:53:01terry.reedylinkissue17279 messages
2013-02-24 01:53:01terry.reedycreate