8000 gh-100762: Fix optimization in gen_close by iritkatriel · Pull Request #111069 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-100762: Fix optimization 8000 in gen_close #111069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set frame state when returning early
  • Loading branch information
iritkatriel committed Oct 20, 2023
commit 90d64094d140b08ac04a476bc2bf26bf2bef081f
1 change: 1 addition & 0 deletions Objects/genobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ gen_close(PyGenObject *gen, PyObject *args)
* as it automatically generated to handle
* StopIteration. */
if (exception_handler_depth == 1) {
gen->gi_frame_state = FRAME_COMPLETED;
Py_RETURN_NONE;
}
}
Expand Down
0