]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135178)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Jun 2025 13:35:54 +0000 (15:35 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Jun 2025 13:35:54 +0000 (15:35 +0200)
commite11d4a18e15e79b34473389c44ec1f54dda3a508
tree9b00535ba8bafc351159d167d9920aa1e59e66d7
parent285c69ea38f77949e7b8590e6d14bf23ad352561
[3.14] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135178)

gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165)

Fix Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE macros in the
limited C API 3.11 and older:
Don't treat Py_None, Py_True and Py_False as immortal.
(cherry picked from commit 9258f3da9175134d03f2c8c7c7eed223802ad945)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/boolobject.h
Include/object.h
Misc/NEWS.d/next/C_API/2025-06-05-11-06-07.gh-issue-134989.74p4ud.rst [new file with mode: 0644]