- New C API PyGC_Collect(), same as calling gc.collect().

- Call this in Py_Finalize().
- Expand the Misc/NEWS text on PY_LONG_LONG.
This commit is contained in:
Guido van Rossum 2003-04-17 17:29:22 +00:00
parent cf8d285ba3
commit e13ddc9ec8
4 changed files with 37 additions and 2 deletions

View file

@ -228,6 +228,9 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, int);
* ==========================
*/
/* 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)