]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135182)
authorVictor Stinner <vstinner@python.org>
Thu, 5 Jun 2025 15:02:09 +0000 (17:02 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Jun 2025 15:02:09 +0000 (15:02 +0000)
commit922dc2ccb0b3927e48c0d6bcfbbdd0606d2f2a62
tree6637895dbf8009218965586fcc3b4ec1d557f70e
parente2a9a3fa98e45c9cf821a403a77281ee06d34e3c
[3.13] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135182)

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)
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]