[issue24268] PEP 489 -- Multi-phase extension module initialization

Petr Viktorin report at bugs.python.org
Fri May 29 21:57:23 CEST 2015


Petr Viktorin added the comment:

And, the remaining refleak is a known issue from 2012: PyType_FromSpec-created types with custom tp_dealloc leak references when instantiated.
See issue 16690
There's more discussion is in issue 15653

Martin v. Löwis notes:
> So I'd propose that it is actually the leaf subtype which decrefs
> ob_type. The check whether you are the leaf type is then done by
> checking whether tp_dealloc is the one you are "in" right now.

Is that really the way to go? I didn't find this info in the docs, should those be updated?

----------

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


More information about the Python-bugs-list mailing list