You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncgen.athrow() checks args on asyncgen.athrow().send() but should check them on asyncgen.athrow() #117852
Activity
graingert commentedon Apr 13, 2024
to get the error you have to actually await the coroutine:
output:
duaneg commentedon May 28, 2025
Fixing this would be a change in behaviour, but it is hard to imagine it breaking any working code.
pythongh-117852: eagerly check arguments to asyncgen.athrow()
gh-117852: fix argument checking of `async_generator.athrow` (#134868)
pythongh-117852: fix argument checking of `async_generator.athrow` (p…
pythongh-117852: fix argument checking of `async_generator.athrow` (p…
pythongh-117852: fix argument checking of `async_generator.athrow` (p…