mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #6695: Full garbage collection runs now clear the freelist of set objects.
Initial patch by Matthias Troffaes.
This commit is contained in:
parent
c144a93e98
commit
093ce9cd8c
5 changed files with 23 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue