Mercurial > cpython-lru_cache-weakref
diff Include/objimpl.h @ 28651:7fda09f751ad legacy-trunk
- New C API PyGC_Collect(), same as calling gc.collect().
- Call this in Py_Finalize().
- Expand the Misc/NEWS text on PY_LONG_LONG.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Apr 2003 17:29:22 +0000 |
| parents | c1eb668525e1 |
| children | 52beafd936c8 |
line wrap: on
line diff
--- a/Include/objimpl.h Thu Apr 17 16:53:26 2003 +0000 +++ b/Include/objimpl.h Thu Apr 17 17:29:22 2003 +0000 @@ -228,6 +228,9 @@ * ========================== */ +/* C equivalent of gc.collect(). */ +long PyGC_Collect(void); + /* Test if a type has a GC head */ #define PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)
