FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-120321: Add missing "return false" in gen_try_set_executing by colesbury · Pull Request #144291 · python/cpython · GitHub

/ cpython Public

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

Merged
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-120321-missing-return
Jan 27, 2026
Merged

gh-120321: Add missing "return false" in gen_try_set_executing#144291
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-120321-missing-return

Conversation

colesbury commented Jan 27, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 merged commit 6b45381 into python:main Jan 27, 2026
61 checks passed
colesbury deleted the gh-120321-missing-return branch January 27, 2026 21:38
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
…ythongh-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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL