]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143939: Fix assignment to `_PyThreadStateImpl.generator_return_kind` (gh-143951)
authorSam Gross <colesbury@gmail.com>
Tue, 20 Jan 2026 17:51:55 +0000 (12:51 -0500)
committerGitHub <noreply@github.com>
Tue, 20 Jan 2026 17:51:55 +0000 (17:51 +0000)
commit43bb6300b3e1b477436592ecbbbebbe1534499cf
treeb8f6a96c4d8b58b6f34c66380419c0a6f5c4b657
parenta126893fa80c4ee5f0bac8a84a49491c19edd511
gh-143939: Fix assignment to `_PyThreadStateImpl.generator_return_kind` (gh-143951)

The assignment to generator_return_kind has to be after any potentially
escaping calls to ensure that it's not overwritten.
Lib/test/test_coroutines.py
Misc/NEWS.d/next/Core_and_Builtins/2026-01-16-23-19-38.gh-issue-143939.w9TWch.rst [new file with mode: 0644]
Objects/genobject.c
Python/ceval.c