Skip to content

gh-117852: eagerly check arguments to asyncgen.athrow() #134868

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 3 commits into from
Jun 2, 2025

Conversation

duaneg
Copy link
Contributor

@duaneg duaneg commented May 28, 2025

At present the arguments to asyncgen.athrow() are not checked until the coroutine is awaited. Unpack them on coroutine creation instead, so they are checked immediately.

At present the arguments to asyncgen.athrow() are not checked until the
coroutine is awaited. Unpack them on coroutine creation instead, so they are
checked immediately.
…e-117852.BO9g7z.rst

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@kumaraditya303 kumaraditya303 merged commit b6237c3 into python:main Jun 2, 2025
43 checks passed
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