]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105550)
authorVictor Stinner <vstinner@python.org>
Fri, 9 Jun 2023 09:30:41 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 09:30:41 +0000 (09:30 +0000)
commit7ba0fd9f87ad75f8eda8e002c2fc71049b815f33
tree0f7c30e32dee7d2bba813c1b0b6535f0229f0ab8
parent947ec7ab02e7673956eb7f235c330a49f11e157a
gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105550)

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.
Include/object.h