]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99300: Replace Py_INCREF() with Py_NewRef() (#99513)
authorVictor Stinner <vstinner@python.org>
Wed, 16 Nov 2022 09:39:47 +0000 (10:39 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2022 09:39:47 +0000 (10:39 +0100)
commit3ed8803ef59f80e03c40b100b04c2e13f138ceed
treeec9ce18edd242485d4e3198d8e62924e1616c4ea
parentea88d34de27ba2b3acaeb03c7dc7829dff40ea5c
gh-99300: Replace Py_INCREF() with Py_NewRef() (#99513)

Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef()
and Py_XNewRef().
12 files changed:
Modules/_asynciomodule.c
Modules/_ctypes/_ctypes.c
Modules/_ctypes/cfield.c
Modules/_elementtree.c
Modules/_testbuffer.c
Modules/_testcapi/datetime.c
Modules/mmapmodule.c
Modules/selectmodule.c
Modules/syslogmodule.c
Objects/bytearrayobject.c
Objects/funcobject.c
Objects/setobject.c