summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-11-03 17:18:57 (GMT)
committerGitHub <noreply@github.com>2023-11-03 17:18:57 (GMT)
commit20cfab903db70cf952128bc6b606e3ec4a216498 (patch)
treedfed10d60f9b45ebc0cf52c2351859a328371e53 /Misc
parente0afed7e276b6611a2142ec70a0440298d528305 (diff)
downloadcpython-20cfab903db70cf952128bc6b606e3ec4a216498.zip
cpython-20cfab903db70cf952128bc6b606e3ec4a216498.tar.gz
cpython-20cfab903db70cf952128bc6b606e3ec4a216498.tar.bz2
gh-111506: Implement Py_SET_REFCNT() as opaque function in limited C API (#111508)
In the limited C API version 3.13, Py_SET_REFCNT() function is now implemented as an opaque function call. Add _Py_SetRefcnt() to the stable ABI.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2023-10-30-18-13-01.gh-issue-111506.EUdO22.rst2
-rw-r--r--Misc/stable_abi.toml3
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-10-30-18-13-01.gh-issue-111506.EUdO22.rst b/Misc/NEWS.d/next/C API/2023-10-30-18-13-01.gh-issue-111506.EUdO22.rst
new file mode 100644
index 0000000..f4d71fd
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2023-10-30-18-13-01.gh-issue-111506.EUdO22.rst
@@ -0,0 +1,2 @@
+In the limited C API version 3.13, :c:func:`Py_SET_REFCNT` function is now
+implemented as an opaque function call. Patch by Victor Stinner.
diff --git a/Misc/stable_abi.toml b/Misc/stable_abi.toml
index 0601de2..b55bb59 100644
--- a/Misc/stable_abi.toml
+++ b/Misc/stable_abi.toml
@@ -2480,3 +2480,6 @@
added = '3.13'
[function.PyUnicode_AsUTF8]
added = '3.13'
+[function._Py_SetRefcnt]
+ added = '3.13'
+ abi_only = true