[issue42294] [C API] Add new C functions with more regular reference counting like PyTuple_GetItemRef()
STINNER Victor
report at bugs.python.org
Mon Nov 9 12:31:27 EST 2020
STINNER Victor <vstinner at python.org> added the comment:
> PyTuple_SetItem() does clear the previous item, it uses Py_XSETREF. The macro version (PyTuple_SET_ITEM) does not clear the previous item.
Oh sorry, I was thinking at PyTuple_SET_ITEM().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42294>
_______________________________________
More information about the Python-bugs-list
mailing list