-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-131670: Fix crash in anext()
when __anext__
is sync and raises
#131682
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion otherwise LGTM.
Misc/NEWS.d/next/Core_and_Builtins/2025-03-24-19-38-53.gh-issue-131670.IffOZj.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Bénédikt Tran <[email protected]>
This crash happens down to 3.11 :( |
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…raises (pythonGH-131682) (cherry picked from commit 929afd1) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
GH-131686 is a backport of this pull request to the 3.13 branch. |
…raises (pythonGH-131682) (cherry picked from commit 929afd1) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
GH-131687 is a backport of this pull request to the 3.12 branch. |
… raises (GH-131682) (#131687) gh-131670: Fix crash in `anext()` when `__anext__` is sync and raises (GH-131682) (cherry picked from commit 929afd1) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
… raises (GH-131682) (#131686) gh-131670: Fix crash in `anext()` when `__anext__` is sync and raises (GH-131682) (cherry picked from commit 929afd1) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
…raises (python#131682) Co-authored-by: Bénédikt Tran <[email protected]>
…raises (python#131682) Co-authored-by: Bénédikt Tran <[email protected]>
anext(A(), default)
crashes whenStopAsyncIteration
is raised by a synchronous__anext__
#131670