]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120321: Add missing "return false" in gen_try_set_executing (gh-144291)
authorSam Gross <colesbury@gmail.com>
Tue, 27 Jan 2026 21:38:50 +0000 (16:38 -0500)
committerGitHub <noreply@github.com>
Tue, 27 Jan 2026 21:38:50 +0000 (16:38 -0500)
commit6b4538192ddac518b9c15b3f79445c964330dee3
tree40c4ab2dbb578b69d580bbe570a195cf569d07c0
parent66055d06503398e0a90515ebe2c120de93ad830d
gh-120321: Add missing "return false" in gen_try_set_executing (gh-144291)

We didn't catch this because of a combination of:

1) falling through to the if-statement below works
2) we only specialized FOR_ITER_GEN for uniquely referenced generators,
   so we didn't trigger the non-thread-safe behavior.
Python/ceval_macros.h