Skip to content

[3.12] gh-102304: Fix Py_INCREF() for limited C API 3.9 (GH-105550) - #105551

Closed
miss-islington wants to merge 1 commit into
python:3.12from
miss-islington:backport-7ba0fd9-3.12
Closed

[3.12] gh-102304: Fix Py_INCREF() for limited C API 3.9 (GH-105550)#105551
miss-islington wants to merge 1 commit into
python:3.12from
miss-islington:backport-7ba0fd9-3.12

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Jun 9, 2023

Copy link
Copy Markdown
Contributor

When Python is built in debug mode (Py_REF_DEBUG macro), Py_INCREF()
and Py_DECREF() of the limited C API 3.9 (and older) now call
Py_IncRef() and Py_DecRef(), since _Py_IncRef() and _Py_DecRef() were
added to Python 3.10.
(cherry picked from commit 7ba0fd9)

Co-authored-by: Victor Stinner vstinner@python.org

When Python is built in debug mode (Py_REF_DEBUG macro), Py_INCREF()
and Py_DECREF() of the limited C API 3.9 (and older) now call
Py_IncRef() and Py_DecRef(), since _Py_IncRef() and _Py_DecRef() were
added to Python 3.10.
(cherry picked from commit 7ba0fd9)
Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@vstinner@bedevere-bot