]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46850: Remove _PyEval_SetAsyncGenFinalizer() (GH-32017)
authorVictor Stinner <vstinner@python.org>
Mon, 21 Mar 2022 00:15:32 +0000 (01:15 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Mar 2022 00:15:32 +0000 (01:15 +0100)
commit332b04bac35cd7305c60da2d5733940dc089949a
treea546b206bbbda8fe576e1b25ec2c609e20d1faf9
parent9d1c4d69dbc800ac344565119337fcf490cdc800
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.
Include/cpython/ceval.h
Include/internal/pycore_ceval.h
Misc/NEWS.d/next/C API/2022-03-21-00-41-29.bpo-46850.rOt771.rst [new file with mode: 0644]
Python/sysmodule.c