Skip to content

Conversation

@efimov-mikhail
Copy link
Member

@efimov-mikhailefimov-mikhail commented Nov 18, 2024

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.

@efimov-mikhail
Copy link
MemberAuthor

cc @ncoghlan

Copy link
Member

@markshannonmarkshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Nice clean fix and thorough tests.

@efimov-mikhail
Copy link
MemberAuthor

So, this PR can be merged? Or there's something I should improve?

@sobolevn
Copy link
Member

I am planning to merge this in a couple of days if no one has objections.

Copy link
Contributor

@ncoghlanncoghlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, too! Nice detective work, thanks. Minor typo fix suggestion in the NEWS entry.

@sobolevnsobolevn merged commit 8e20e42 into python:mainJan 22, 2025
41 checks passed
@ncoghlanncoghlan added the needs backport to 3.13 bugs and security fixes label Jun 12, 2025
@miss-islington-app
Copy link

Thanks @efimov-mikhail for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

Sorry, @efimov-mikhail and @sobolevn, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 8e20e42cc63321dacc500d7670bfc225ca04e78b 3.13 

@ncoghlanncoghlan removed the needs backport to 3.13 bugs and security fixes label Jun 12, 2025
@bedevere-app
Copy link

GH-135453 is a backport of this pull request to the 3.13 branch.

ncoghlan pushed a commit that referenced this pull request Jun 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@efimov-mikhail@sobolevn@ncoghlan@markshannon@Eclips4