]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39573: Add Py_SET_REFCNT() function (GH-18389)
authorVictor Stinner <vstinner@python.org>
Fri, 7 Feb 2020 00:24:29 +0000 (01:24 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2020 00:24:29 +0000 (01:24 +0100)
commitc86a11221df7e37da389f9c6ce6e47ea22dc44ff
treec27a35a01bde1554488268dd3bbeb8b4c46e193c
parenta93c51e3a8e15f1a486d11d5b55a64f3381babe0
bpo-39573: Add Py_SET_REFCNT() function (GH-18389)

Add a Py_SET_REFCNT() function to set the reference counter of an
object.
Doc/c-api/structures.rst
Include/object.h
Misc/NEWS.d/next/C API/2020-02-07-00-23-44.bpo-39573.nRD1q7.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Objects/moduleobject.c
Objects/object.c
Objects/unicodeobject.c