summaryrefslogtreecommitdiffstats
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-22 21:17:06 (GMT)
committerGitHub <noreply@github.com>2022-11-22 21:17:06 (GMT)
commitf1a4a6a58736196f766d51f048d19a2b0a0a155a (patch)
treeab4497c7054aebea934b5139a16d160e66f71533 /Python/getopt.c
parentf5fea2288620cb2fda24f3eecc9d623331fe4401 (diff)
downloadcpython-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/getopt.c')
0 files changed, 0 insertions, 0 deletions