]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40241: Add PyObject_GC_IsTracked and PyObject_GC_IsFinalized to the public C...
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 11 Apr 2020 00:21:54 +0000 (01:21 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Apr 2020 00:21:54 +0000 (01:21 +0100)
commitf13072b8a89a922285737988b086beb4b06c6648
tree14b73d6eb614949e2ce81db59f13c3b13eb475d9
parent0361556537686f857f1025ead75e6af4ca7cc94a
bpo-40241: Add PyObject_GC_IsTracked and PyObject_GC_IsFinalized to the public C-API (GH-19461)

Add the functions PyObject_GC_IsTracked and PyObject_GC_IsFinalized to the public API to allow to query if Python objects are being currently tracked or have been already finalized by the garbage collector respectively.
Doc/c-api/gcsupport.rst
Doc/whatsnew/3.9.rst
Include/objimpl.h
Misc/NEWS.d/next/C API/2020-04-10-19-43-04.bpo-40241.Xm3w-1.rst [new file with mode: 0644]
Modules/_testcapimodule.c
Modules/gcmodule.c