Skip to content

Commit 9a8c131

Browse files
authored
bpo-40428: Cleanup free list part of C API Changes doc (GH-19793)
1 parent 5089bcd commit 9a8c131

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -570,14 +570,6 @@ Build and C API Changes
570570
``pyfpe.h`` from ``Py_LIMITED_API`` (stable API).
571571
(Contributed by Victor Stinner in :issue:`38835`.)
572572

573-
* Remove ``PyMethod_ClearFreeList()`` and ``PyCFunction_ClearFreeList()``
574-
functions: the free lists of bound method objects have been removed.
575-
(Contributed by Inada Naoki and Victor Stinner in :issue:`37340`.)
576-
577-
* Remove ``PyUnicode_ClearFreeList()`` function: the Unicode free list has been
578-
removed in Python 3.3.
579-
(Contributed by Victor Stinner in :issue:`38896`.)
580-
581573
* The ``tp_print`` slot of :ref:`PyTypeObject <type-structs>` has been removed.
582574
It was used for printing objects to files in Python 2.7 and before. Since
583575
Python 3.0, it has been ignored and unused.
@@ -674,17 +666,23 @@ Build and C API Changes
674666
:issue:`40241`.)
675667

676668
* Remove the following functions from the C API. Call :c:func:`PyGC_Collect`
677-
explicitly to free all free lists.
678-
(Contributed by Victor Stinner in :issue:`40428`.)
669+
explicitly to clear all free lists.
670+
(Contributed by Inada Naoki and Victor Stinner in :issue:`37340`,
671+
:issue:`38896` and :issue:`40428`.)
679672

680673
* ``PyAsyncGen_ClearFreeLists()``
681674
* ``PyContext_ClearFreeList()``
682675
* ``PyDict_ClearFreeList()``
683676
* ``PyFloat_ClearFreeList()``
684677
* ``PyFrame_ClearFreeList()``
685678
* ``PyList_ClearFreeList()``
686-
* ``PySet_ClearFreeList()``
679+
* ``PyMethod_ClearFreeList()`` and ``PyCFunction_ClearFreeList()``:
680+
the free lists of bound method objects have been removed.
681+
* ``PySet_ClearFreeList()``: the set free list has been removed
682+
in Python 3.4.
687683
* ``PyTuple_ClearFreeList()``
684+
* ``PyUnicode_ClearFreeList()``: the Unicode free list has been removed in
685+
Python 3.3.
688686

689687

690688
Deprecated

0 commit comments

Comments
 (0)