Skip to content
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

bpo-35759: add introspection API for asynchronous generators #11590

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tkren
Copy link
Contributor

@tkren tkren commented Jan 17, 2019

The inspect module 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.

The functions inspect.getasyncgenstate and inspect.getasyncgenlocals allow to determine the current state of asynchronous generators and mirror the introspection API for generators and coroutines.

https://bugs.python.org/issue35759

https://bugs.python.org/issue35759

auvipy
auvipy approved these changes Jun 1, 2019
@tkren
Copy link
Contributor Author

tkren commented Jan 26, 2021

@1st1 This PR is open for some time now, is it still considered?

Also, it appears that the CI/CD pipeline got stuck, the Ubuntu & Windows status is in limbo

The functions inspect.getasyncgenstate and inspect.getasyncgenlocals
allow to determine the current state of asynchronous generators and
mirror the introspection API for generators and coroutines.
@tkren
Copy link
Contributor Author

tkren commented Oct 9, 2021

Rebased this branch onto main and adapted docs and unit tests for Python 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants