[docs] [issue10977] Concrete object C API needs abstract path for subclasses of builtin types
Nick Coghlan
report at bugs.python.org
Thu Apr 7 06:50:19 CEST 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I thought about a warning, but the problem is that a subclass using the concrete API as part of its *implementation* of the associated slot or method is actually perfectly correct usage.
I'm not sure this is enough to give up on the idea of OrderedDict being a dict subclass implemented in C, though. It seems to me that some defensive internal checks (to pick up state corruption due to this problem) would be a lesser evil than giving up on being a dict subclass.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10977>
_______________________________________
More information about the docs
mailing list