diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-09 10:32:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 10:32:46 (GMT) |
commit | d29e86bea3bcd7a8379d8368b36c718ab7b5b3f3 (patch) | |
tree | 7a9e9205d1d2bd3dfe2791e7066f684afe3ae761 /Python/compile.c | |
parent | 2f4a2d6c1b0c95f6be33a8c778b0212922a50530 (diff) | |
download | cpython-d29e86bea3bcd7a8379d8368b36c718ab7b5b3f3.zip cpython-d29e86bea3bcd7a8379d8368b36c718ab7b5b3f3.tar.gz cpython-d29e86bea3bcd7a8379d8368b36c718ab7b5b3f3.tar.bz2 |
[3.12] gh-102304: Fix Py_INCREF() for limited C API 3.9 (#105553)
* 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.
(cherry picked from commit 7ba0fd9f87ad75f8eda8e002c2fc71049b815f33)
* gh-102304: Remove Py_INCREF() doc change (#105552)
Py_INCREF() was made compatible again with Python 3.9 and older in
the limited API of Python debug mode.
(cherry picked from commit 58e4b69f698e6fd0694a58f18679bbe0e7e50e91)
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions