◐ Shell
clean mode source ↗

bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() by vstinner · Pull Request #32017 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 1 commit into

Mar 21, 2022

Conversation

@vstinner

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

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