Skip to content

bpo-46850: Remove _PyEval_SetAsyncGenFinalizer()#32017

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:pyeval_set_async
Mar 21, 2022
Merged

bpo-46850: Remove _PyEval_SetAsyncGenFinalizer()#32017
vstinner merged 1 commit intopython:mainfrom
vstinner:pyeval_set_async

Conversation

@vstinner
Copy link
Copy Markdown
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
Copy Markdown
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