diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-01-14 12:06:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 12:06:45 (GMT) |
commit | a2ec3f07f7f028ff6229d6be2a7cfbda1f4efaeb (patch) | |
tree | 2ca30015db1da7016d3f0eff8e253dcfc298452a /Modules/clinic/gcmodule.c.h | |
parent | 1d1b97ae643dd8b22d87785ed7bd2599c6c8dc8d (diff) | |
download | cpython-a2ec3f07f7f028ff6229d6be2a7cfbda1f4efaeb.zip cpython-a2ec3f07f7f028ff6229d6be2a7cfbda1f4efaeb.tar.gz cpython-a2ec3f07f7f028ff6229d6be2a7cfbda1f4efaeb.tar.bz2 |
bpo-39322: Add gc.is_finalized to check if an object has been finalised by the gc (GH-17989)
Diffstat (limited to 'Modules/clinic/gcmodule.c.h')
-rw-r--r-- | Modules/clinic/gcmodule.c.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Modules/clinic/gcmodule.c.h b/Modules/clinic/gcmodule.c.h index 22d2aa4..72795c6 100644 --- a/Modules/clinic/gcmodule.c.h +++ b/Modules/clinic/gcmodule.c.h @@ -304,6 +304,15 @@ PyDoc_STRVAR(gc_is_tracked__doc__, #define GC_IS_TRACKED_METHODDEF \ {"is_tracked", (PyCFunction)gc_is_tracked, METH_O, gc_is_tracked__doc__}, +PyDoc_STRVAR(gc_is_finalized__doc__, +"is_finalized($module, obj, /)\n" +"--\n" +"\n" +"Returns true if the object has been already finalized by the GC."); + +#define GC_IS_FINALIZED_METHODDEF \ + {"is_finalized", (PyCFunction)gc_is_finalized, METH_O, gc_is_finalized__doc__}, + PyDoc_STRVAR(gc_freeze__doc__, "freeze($module, /)\n" "--\n" @@ -373,4 +382,4 @@ gc_get_freeze_count(PyObject *module, PyObject *Py_UNUSED(ignored)) exit: return return_value; } -/*[clinic end generated code: output=e40d384b1f0d513c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=bd6a8056989e2e69 input=a9049054013a1b77]*/ |