]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28254: Add a C-API for controlling the GC state (GH-25687)
authorscoder <stefan_ml@behnel.de>
Wed, 28 Apr 2021 16:12:16 +0000 (18:12 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 16:12:16 +0000 (18:12 +0200)
commit3cc481b9de43c234889c8010e7da3af7c0f42319
tree1166babff0120ad235c37789907d640eec280c8f
parentbaecfbd849dbf42360d3a84af6cc13160838f24d
bpo-28254: Add a C-API for controlling the GC state (GH-25687)

Add new C-API functions to control the state of the garbage collector:
PyGC_Enable(), PyGC_Disable(), PyGC_IsEnabled(),
corresponding to the functions in the gc module.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/c-api/gcsupport.rst
Doc/data/stable_abi.dat
Doc/whatsnew/3.10.rst
Include/objimpl.h
Misc/NEWS.d/next/C API/2021-04-28-12-33-44.bpo-28254.a2561e.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Modules/gcmodule.c