gh-111506: Implement Py_SET_REFCNT() as opaque function in limited C API · python/cpython@67638c4 · GitHub
Skip to content

Commit 67638c4

Browse files
committed
gh-111506: Implement Py_SET_REFCNT() as opaque function in limited C API
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.
1 parent bca3305 commit 67638c4

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

Include/object.h

Lines changed: 11 additions & 2 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
In the limited C API version 3.13, :c:func:`Py_SET_REFCNT` function is now
2+
implemented as an opaque function call. Patch by Victor Stinner.

Misc/stable_abi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2480,3 +2480,5 @@
24802480
added = '3.13'
24812481
[function.PyUnicode_AsUTF8]
24822482
added = '3.13'
2483+
[function._Py_SetRefcnt]
2484+
added = '3.13'

Objects/object.c

Lines changed: 8 additions & 0 deletions

0 commit comments

Comments
 (0)