[docs] [issue10977] Concrete object C API considered harmful to subclasses of builtin types
report at bugs.python.org
Fri Oct 25 18:25:21 CEST 2013
Antoine Pitrou added the comment:
> > To be clear: the problem is with CPython calling the concrete APIs when
> > it shouldn't, rather than with the concrete APIs not behaving properly.
> The boilerplate required to use them correctly renders them broken in my
> view, particularly when they silently corrupt internal subclass state when
> misused instead of throwing an exception.
IMO the boilerplate should actually be included inside the abstract
APIs, so as to automatically enable optimized shortcuts when possible.
Python tracker <report at bugs.python.org>
More information about the docs