[New-bugs-announce] [issue40428] [C API] Move PyXXX_ClearFreeLists() functions to the internal C API

STINNER Victor report at bugs.python.org
Tue Apr 28 17:04:13 EDT 2020


New submission from STINNER Victor <vstinner at python.org>:

The following C functions are implementation details and should not be called directly:

- PyAsyncGen_ClearFreeLists()
- PyContext_ClearFreeList()
- PyDict_ClearFreeList()
- PyFloat_ClearFreeList()
- PyFrame_ClearFreeList()
- PyList_ClearFreeList()
- PySet_ClearFreeList()
- PyTuple_ClearFreeList()

To call them all at once, simply call explicitly PyGC_Collect().

Attached PR move these functions to the internal C API and stop to export them.

----------
components: C API
messages: 367561
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] Move PyXXX_ClearFreeLists() functions to the internal C API
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40428>
_______________________________________


More information about the New-bugs-announce mailing list