summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-05 14:02:12 (GMT)
committerGitHub <noreply@github.com>2020-11-05 14:02:12 (GMT)
commit53a03aafd5812018a3821a2e83063fd3d6cd2576 (patch)
treec38adba5e60f412a36ea31736fb6265b2f754a40 /Misc
parent80449f243b13311d660eab3a751648029bcdd833 (diff)
downloadcpython-53a03aafd5812018a3821a2e83063fd3d6cd2576.zip
cpython-53a03aafd5812018a3821a2e83063fd3d6cd2576.tar.gz
cpython-53a03aafd5812018a3821a2e83063fd3d6cd2576.tar.bz2
bpo-42262: Add Py_NewRef() and Py_XNewRef() (GH-23152)
Added Py_NewRef() and Py_XNewRef() functions to increment the reference count of an object and return the object.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2020-11-04-17-22-36.bpo-42262.fCWzBb.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-11-04-17-22-36.bpo-42262.fCWzBb.rst b/Misc/NEWS.d/next/C API/2020-11-04-17-22-36.bpo-42262.fCWzBb.rst
new file mode 100644
index 0000000..8c1e4f4
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-11-04-17-22-36.bpo-42262.fCWzBb.rst
@@ -0,0 +1,2 @@
+Added :c:func:`Py_NewRef` and :c:func:`Py_XNewRef` functions to increment the
+reference count of an object and return the object. Patch by Victor Stinner.