8000 GH-100964: Break cycles involving exception state when returning from generator by markshannon · Pull Request #107563 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-100964: Break cycles involving exception state when returning from generator #107563

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 1 commit into from
Aug 2, 2023

Conversation

markshannon
Copy link
Member
@markshannon markshannon commented Aug 2, 2023

This is an attempt to fix #100964.
Even if it doesn't fix the issue, it seems better to clear the exception state as soon as the generator is exhausted.

If it works we can consider a backport.

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 8ea8408 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Aug 2, 2023
@markshannon
Copy link
Member Author

All the buildbots were already failing, so sadly the failures tell us nothing.

@iritkatriel
Copy link
Member

I don't think this PR can cause new leaks. It's making us clear more than before.

@markshannon markshannon merged commit 0d30a5a into python:main Aug 2, 2023
@markshannon markshannon deleted the more-cleanup-on-gen-return branch August 2, 2023 17:44
Sign up for free to 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.

3 participants
0