]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-127705: Move Py_INCREF_MORTAL() to the internal C API (GH-136178) (#136206)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Jul 2025 06:42:17 +0000 (08:42 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 06:42:17 +0000 (06:42 +0000)
commit8dcf3ed304d13d0deac2c0df9ebb162b4c90538b
tree06c1b9795c3cb63dd652aa7dddfa5a1a3ab1b13d
parent5216a6c547fbe2e634daea2d8d63beb56df829b3
[3.14] gh-127705: Move Py_INCREF_MORTAL() to the internal C API (GH-136178) (#136206)

gh-127705: Move Py_INCREF_MORTAL() to the internal C API (GH-136178)

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
(cherry picked from commit fa43a1e0f8caf00a15898fa719e31767c866bd90)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/internal/pycore_object.h
Include/internal/pycore_stackref.h
Include/refcount.h