]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165)
authorVictor Stinner <vstinner@python.org>
Thu, 5 Jun 2025 12:43:47 +0000 (14:43 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Jun 2025 12:43:47 +0000 (14:43 +0200)
commit9258f3da9175134d03f2c8c7c7eed223802ad945
treeb0e38b3866b234991cb731f22a4353d36f92b7ec
parent4b44b3409ac026e7f13054a3daa18ab7ee14d85c
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.
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]