diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-16 10:24:27 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-16 10:24:27 (GMT) |
commit | 093ce9cd8c6e4287bffac9d9519d5159d788a008 (patch) | |
tree | 2b8bba612cf0390e8a5b098d2fbf88382c909940 /Include | |
parent | c144a93e987600196aaf5e8ec65a5eac76af29cd (diff) | |
download | cpython-093ce9cd8c6e4287bffac9d9519d5159d788a008.zip cpython-093ce9cd8c6e4287bffac9d9519d5159d788a008.tar.gz cpython-093ce9cd8c6e4287bffac9d9519d5159d788a008.tar.bz2 |
Issue #6695: Full garbage collection runs now clear the freelist of set objects.
Initial patch by Matthias Troffaes.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/setobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/setobject.h b/Include/setobject.h index 6234111..00e5344 100644 --- a/Include/setobject.h +++ b/Include/setobject.h @@ -99,6 +99,8 @@ PyAPI_FUNC(int) _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, PyAPI_FUNC(PyObject *) PySet_Pop(PyObject *set); #ifndef Py_LIMITED_API PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable); + +PyAPI_FUNC(int) PySet_ClearFreeList(void); #endif #ifdef __cplusplus |