Skip to content

gh-131670: Fix crash in anext() when __anext__ is sync and raises#131682

Merged
sobolevn merged 2 commits into
python:mainfrom
sobolevn:issue-131670
Mar 24, 2025
Merged

gh-131670: Fix crash in anext() when __anext__ is sync and raises#131682
sobolevn merged 2 commits into
python:mainfrom
sobolevn:issue-131670

Conversation

@sobolevn

@sobolevn sobolevn commented Mar 24, 2025

Copy link
Copy Markdown
Member

@picnixz picnixz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One suggestion otherwise LGTM.

Comment thread Misc/NEWS.d/next/Core_and_Builtins/2025-03-24-19-38-53.gh-issue-131670.IffOZj.rst Outdated
Comment thread Lib/test/test_asyncgen.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@sobolevn sobolevn added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Mar 24, 2025
@sobolevn

Copy link
Copy Markdown
Member Author

This crash happens down to 3.11 :(

@sobolevn
sobolevn enabled auto-merge (squash) March 24, 2025 18:37
@sobolevn
sobolevn merged commit 929afd1 into python:main Mar 24, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 24, 2025
…raises (pythonGH-131682)

(cherry picked from commit 929afd1)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Mar 24, 2025

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Mar 24, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 24, 2025
…raises (pythonGH-131682)

(cherry picked from commit 929afd1)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Mar 24, 2025

Copy link
Copy Markdown

GH-131687 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Mar 24, 2025
sobolevn added a commit that referenced this pull request Mar 24, 2025
… 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 <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
sobolevn added a commit that referenced this pull request Mar 24, 2025
… 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 <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 1, 2025
…raises (python#131682)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
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.

2 participants