There is a C API function for Python dictionaries called PyDict_ClearFreeList
. However the docstring is rather sparse:
int PyDict_ClearFreeList()
Clear the free list. Return the total number of freed items.
New in version 3.3.
This function has no parameters so it (probably) has nothing to do with any specific dictionary.
And it returns an int
. This seems rather weird because that indicates it refers to some C state because python "classes" always have a Py_ssize_t
size.
So what exactly is this "free list"?