Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-120321: Add missing "return false" in gen_try_set_executing#144291

Merged
colesbury merged 1 commit intopython:mainpython/cpython:mainfrom
colesbury:gh-120321-missing-returncolesbury/cpython:gh-120321-missing-returnCopy head branch name to clipboard
Jan 27, 2026
Merged

gh-120321: Add missing "return false" in gen_try_set_executing#144291
colesbury merged 1 commit intopython:mainpython/cpython:mainfrom
colesbury:gh-120321-missing-returncolesbury/cpython:gh-120321-missing-returnCopy head branch name to clipboard

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Jan 27, 2026

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.

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.
@colesbury colesbury merged commit 6b45381 into python:main Jan 27, 2026
61 checks passed
@colesbury colesbury deleted the gh-120321-missing-return branch January 27, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.