Uh oh!
There was an error while loading. Please reload this page.
gh-125723: Fix crash with f_locals when generator frame outlive their generator - #126956
Conversation
efimov-mikhail
commented
Nov 18, 2024
cc @ncoghlan |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
markshannon
left a comment
There was a problem hiding this comment.
Looks good.
Nice clean fix and thorough tests.
efimov-mikhail
commented
Dec 7, 2024
So, this PR can be merged? Or there's something I should improve? |
sobolevn
commented
Jan 19, 2025
I am planning to merge this in a couple of days if no one has objections. |
ncoghlan
left a comment
There was a problem hiding this comment.
LGTM, too! Nice detective work, thanks. Minor typo fix suggestion in the NEWS entry.
Uh oh!
There was an error while loading. Please reload this page.
…e-125723.tW_hFG.rst Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Thanks @efimov-mikhail for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @efimov-mikhail and @sobolevn, I could not cleanly backport this to |
GH-135453 is a backport of this pull request to the 3.13 branch. |
It seems that this PR had a problem.
It provides incorrect clearing of generator frame locals without checking any another references on this frame.
In this PR we can see a more accurate way of clearing such a frame.