[issue38090] test_ctypes is leaking references

STINNER Victor report at bugs.python.org
Tue Sep 10 11:37:57 EDT 2019


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

> hmm I assume _PyDict_GetItemId has different reference semantics?

PyDict_GetItem() and _PyDict_GetItemId() return a borrowed reference.

PyObject_GetAttr() and _PyObject_GetAttrId() return a strong reference.

----------

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


More information about the Python-bugs-list mailing list