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
inspect module does not implement introspection API for asynchronous generators #79940
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2019-01-17.12:34:49.495>labels= ['3.8', 'type-feature', 'library']
title='inspect module does not implement introspection API for asynchronous generators'updated_at=<Date2019-01-17.14:15:35.489>user='https://github.com/tkren'
Activity
tkren commentedon Jan 17, 2019
The
inspectmodule does not contain functions for determining the current state of asynchronous generators. That is, there is no introspection API for asynchronous generators that match the API for generators and coroutines: https://docs.python.org/3.8/library/inspect.html#current-state-of-generators-and-coroutines.I propose to add
inspect.getasyncgenstateandinspect.getasyncgenlocals(followinginspect.isasyncgenfunctionandinspect.isasyncgen).tirkarthi commentedon Jan 17, 2019
see also msg300475
kumaraditya303 commentedon Mar 5, 2023
I needed this today and was surprised that it wasn't implemented. I'll review the PR.
gh-79940: add introspection API for asynchronous generators to `inspe…
gh-79940: skip `TestGetAsyncGenState` on wasm as it requires working …
pythongh-79940: add introspection API for asynchronous generators to …
pythongh-79940: skip `TestGetAsyncGenState` on wasm as it requires wo…