Skip to content

bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() #32017

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 1 commit into from
Mar 21, 2022
Merged

bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() #32017

merged 1 commit into from
Mar 21, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 20, 2022

Remove the following private undocumented functions from the C API:

  • _PyEval_GetAsyncGenFirstiter()
  • _PyEval_GetAsyncGenFinalizer()
  • _PyEval_SetAsyncGenFirstiter()
  • _PyEval_SetAsyncGenFinalizer()

Call the public sys.get_asyncgen_hooks() and sys.set_asyncgen_hooks()
functions instead.

https://bugs.python.org/issue46850

Remove the following private undocumented functions from the C API:

* _PyEval_GetAsyncGenFirstiter()
* _PyEval_GetAsyncGenFinalizer()
* _PyEval_SetAsyncGenFirstiter()
* _PyEval_SetAsyncGenFinalizer()

Call the public sys.get_asyncgen_hooks() and sys.set_asyncgen_hooks()
functions instead.
@vstinner
Copy link
Member Author

This PR has no impact on the top 5000 PyPI projects:

$ ./search_pypi_top.py PYPI-2022-01-26-TOP-5000/ '_PyEval_[GS]etAsync' -q
Found 0 matching lines in 0 projects

@vstinner vstinner merged commit 332b04b into python:main Mar 21, 2022
@vstinner vstinner deleted the pyeval_set_async branch March 21, 2022 00:15
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.

3 participants