]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99300: Use Py_NewRef() in Python/ directory (#99317)
authorVictor Stinner <vstinner@python.org>
Thu, 10 Nov 2022 10:23:36 +0000 (11:23 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 10:23:36 +0000 (11:23 +0100)
commit231d83b72435d61e929d6d62f2be7305e7b5b62b
tree17768fa10f1ade6bae9022d26e1470fd0b931366
parentd8f239d86eb70c31aa4c4ac46a1d0a27bdb14b20
gh-99300: Use Py_NewRef() in Python/ directory (#99317)

Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in C files of the Python/ directory.

Update Parser/asdl_c.py to regenerate Python/Python-ast.c.
Parser/asdl_c.py
Python/Python-ast.c
Python/bltinmodule.c
Python/compile.c
Python/context.c
Python/hamt.c
Python/import.c
Python/structmember.c
Python/sysmodule.c
Python/traceback.c