Skip to content

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