diff options
author | Victor Stinner <vstinner@python.org> | 2022-11-22 21:17:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 21:17:06 (GMT) |
commit | f1a4a6a58736196f766d51f048d19a2b0a0a155a (patch) | |
tree | ab4497c7054aebea934b5139a16d160e66f71533 /Python/pystrhex.c | |
parent | f5fea2288620cb2fda24f3eecc9d623331fe4401 (diff) | |
download | cpython-f1a4a6a58736196f766d51f048d19a2b0a0a155a.zip cpython-f1a4a6a58736196f766d51f048d19a2b0a0a155a.tar.gz cpython-f1a4a6a58736196f766d51f048d19a2b0a0a155a.tar.bz2 |
gh-99300: Replace Py_INCREF() with Py_NewRef() in _elementtree.c (#99696)
* Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef()
and Py_XNewRef() in Modules/_elementtree.c.
* Make reference counting more explicit: don't steal implicitly a
reference on PyList_SET_ITEM(), use Py_NewRef() instead.
* Replace PyModule_AddObject() with PyModule_AddObjectRef().
Diffstat (limited to 'Python/pystrhex.c')
0 files changed, 0 insertions, 0 deletions