Issue #6695: Full garbage collection runs now clear the freelist of set objects.

Initial patch by Matthias Troffaes.
This commit is contained in:
Antoine Pitrou 2011-12-16 11:24:27 +01:00
parent c144a93e98
commit 093ce9cd8c
5 changed files with 23 additions and 2 deletions

View file

@ -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