[docs] [issue10977] Concrete object C API considered harmful to subclasses of builtin types
report at bugs.python.org
Fri Oct 25 18:23:05 CEST 2013
Nick Coghlan added the comment:
On 26 Oct 2013 02:18, "Antoine Pitrou" <report at bugs.python.org> wrote:
> Antoine Pitrou added the comment:
> > The problem we're trying to solve is CPython *silently* breaking
> > invariants, which is what the concrete APIs currently do.
> 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.
> Python tracker <report at bugs.python.org>
Python tracker <report at bugs.python.org>
More information about the docs