diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-14 12:47:33 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-14 12:47:33 +0000 |
commit | 3b718a79af900fdacaf0b825137f69eadc753765 (patch) | |
tree | 71cbe9fcb7b94a2611e5f62cf329285270615e22 /Include/tupleobject.h | |
parent | 50361d4d9b3e8729aa535c3dfde3d9d2ad899d47 (diff) | |
download | cpython-git-3b718a79af900fdacaf0b825137f69eadc753765.tar.gz |
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
Diffstat (limited to 'Include/tupleobject.h')
-rw-r--r-- | Include/tupleobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/tupleobject.h b/Include/tupleobject.h index 1b51b1b742..58479ee0ff 100644 --- a/Include/tupleobject.h +++ b/Include/tupleobject.h @@ -52,6 +52,8 @@ PyAPI_FUNC(PyObject *) PyTuple_Pack(Py_ssize_t, ...); /* Macro, *only* to be used to fill in brand new tuples */ #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v) +PyAPI_FUNC(int) PyTuple_ClearFreeList(void); + #ifdef __cplusplus } #endif |