Petr Viktorin <encu...@gmail.com> added the comment:

Also note that the capsule generally needs to hold references to the objects in 
exposes, and not rely on the module object to keep things alive. (Module 
objects with multi-phase init are not unique nor immortal.)
_ctypes is an exception, since it doesn't have ant PyObject*. But in most 
others the destructor should also contain some DECREFs.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41798>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to