Skip to content

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

Merged
encukou merged 1 commit into
python:mainfrom
vstinner:incref_mortal
Jul 2, 2025
Merged

encukou merged 1 commit into
python:mainfrom
vstinner:incref_mortal

Conversation

@vstinner

@vstinner vstinner commented Jul 1, 2025 •

Copy link
Copy Markdown
Member

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to pycore_object.h internal header.

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
@encukou
encukou merged commit fa43a1e into python:main Jul 2, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 2, 2025
…nGH-136178)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

bedevere-app Bot commented Jul 2, 2025

Copy link
Copy Markdown

GH-136206 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 2, 2025
@encukou

encukou commented Jul 2, 2025

Copy link
Copy Markdown
Member

Thank you!

vstinner added a commit that referenced this pull request Jul 3, 2025
…36178) (#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 fa43a1e)

Co-authored-by: Victor Stinner <vstinner@python.org>
AndPuQing pushed a commit to AndPuQing/cpython that referenced this pull request Jul 11, 2025
…nGH-136178)

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…nGH-136178)

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
picnixz pushed a commit to picnixz/cpython that referenced this pull request Jul 13, 2025
…nGH-136178)

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…nGH-136178)

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…nGH-136178)

Rename Py_INCREF_MORTAL() to _Py_INCREF_MORTAL() and move it to
pycore_object.h internal header.
@vstinner
vstinner deleted the incref_mortal branch December 3, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants