[docs] [issue10977] Concrete object C API considered harmful to subclasses of builtin types

Nick Coghlan report at bugs.python.org
Mon Oct 21 22:27:33 CEST 2013


Nick Coghlan added the comment:

I haven't fully thought this one through, but perhaps we could:
- deprecate calling the current concrete APIs with subclasses (since doing
so may break subclass invariants)
- add "PyBaseDict_*" APIs (etc) that subclass implementations can call.
- offer a compatibility header for earlier versions that #defines the new
APIs back to the old ones

This would be 3.5 PEP territory, though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10977>
_______________________________________


More information about the docs mailing list