diff options
author | Victor Stinner <vstinner@python.org> | 2022-03-21 00:15:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 00:15:32 (GMT) |
commit | 332b04bac35cd7305c60da2d5733940dc089949a (patch) | |
tree | a546b206bbbda8fe576e1b25ec2c609e20d1faf9 /Misc | |
parent | 9d1c4d69dbc800ac344565119337fcf490cdc800 (diff) | |
download | cpython-332b04bac35cd7305c60da2d5733940dc089949a.zip cpython-332b04bac35cd7305c60da2d5733940dc089949a.tar.gz cpython-332b04bac35cd7305c60da2d5733940dc089949a.tar.bz2 |
bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() (GH-32017)
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2022-03-21-00-41-29.bpo-46850.rOt771.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-03-21-00-41-29.bpo-46850.rOt771.rst b/Misc/NEWS.d/next/C API/2022-03-21-00-41-29.bpo-46850.rOt771.rst new file mode 100644 index 0000000..b3740ae --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-03-21-00-41-29.bpo-46850.rOt771.rst @@ -0,0 +1,9 @@ +Remove the following private undocumented functions from the C API: + +* ``_PyEval_GetAsyncGenFirstiter()`` +* ``_PyEval_GetAsyncGenFinalizer()`` +* ``_PyEval_SetAsyncGenFirstiter()`` +* ``_PyEval_SetAsyncGenFinalizer()`` + +Call the public :func:`sys.get_asyncgen_hooks` and +:func:`sys.set_asyncgen_hooks` functions instead. Patch by Victor Stinner. |