[issue41798] [C API] Revisit usage of the PyCapsule C API with multi-phase initialization API

STINNER Victor report at bugs.python.org
Mon Jan 25 04:46:36 EST 2021


STINNER Victor <vstinner at python.org> added the comment:

hai shi: "I have checked all capi instances have been allocated in the heap memory. So I think this bpo can be closed ;)"

I also checks and I confirm that PyCapsule_New() is no longer used with a pointer pointing to static data. Well, there is one last case, in an unit test on the API itself (in _testcapi). This corner case is acceptable ;-)

Thanks all for the fixes!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41798>
_______________________________________


More information about the Python-bugs-list mailing list