summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-16 10:24:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-16 10:24:27 (GMT)
commit093ce9cd8c6e4287bffac9d9519d5159d788a008 (patch)
tree2b8bba612cf0390e8a5b098d2fbf88382c909940 /Doc/c-api
parentc144a93e987600196aaf5e8ec65a5eac76af29cd (diff)
downloadcpython-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 'Doc/c-api')
-rw-r--r--Doc/c-api/set.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst
index 66b47c4..5f0ef90 100644
--- a/Doc/c-api/set.rst
+++ b/Doc/c-api/set.rst
@@ -157,3 +157,10 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
.. c:function:: int PySet_Clear(PyObject *set)
Empty an existing set of all elements.
+
+
+.. c:function:: int PySet_ClearFreeList()
+
+ Clear the free list. Return the total number of freed items.
+
+ .. versionadded:: 3.3