Message240066
This does apply to all versions of Python from 2.6 up. Registering does work of course.
I believe the reason for not having the __subclasshook__ is the following sentence in PEP 3119: "ABCs are intended to solve problems that don't have a good solution at all in Python 2, such as distinguishing between mappings and sequences."
This used to be worse in <3.3 because there if you ever inherit from `Sequence` you will always end up having `__dict__`, even if you just want `__slots__`.
(By the way, if Py2 documentation is fixed, it should also say that these ABCs are new as of 2.6, not since 2.4 like the rest of the collections module). |
|
Date |
User |
Action |
Args |
2015-04-04 11:30:16 | ztane | set | recipients:
+ ztane, mjpieters, joncle, docs@python |
2015-04-04 11:30:16 | ztane | set | messageid: <1428147016.7.0.0235755365437.issue23864@psf.upfronthosting.co.za> |
2015-04-04 11:30:16 | ztane | link | issue23864 messages |
2015-04-04 11:30:16 | ztane | create | |
|