mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
- 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:
parent
cf8d285ba3
commit
e13ddc9ec8
4 changed files with 37 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue