Skip to content

Commit bb4a585

Browse files
authored
bpo-40428: Remove references to Py*_ClearFreeList in the docs (GH-19783)
They were removed from the C API in commit ae00a5a.
1 parent 6d65087 commit bb4a585

File tree

7 files changed

+0
-42
lines changed

7 files changed

+0
-42
lines changed

Doc/c-api/contextvars.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ Context object management functions:
101101
current context for the current thread. Returns ``0`` on success,
102102
and ``-1`` on error.
103103
104-
.. c:function:: int PyContext_ClearFreeList()
105-
106-
Clear the context variable free list. Return the total number of
107-
freed items. This function always succeeds.
108-
109104
110105
Context variable functions:
111106

Doc/c-api/dict.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,3 @@ Dictionary Objects
232232
for key, value in seq2:
233233
if override or key not in a:
234234
a[key] = value
235-
236-
237-
.. c:function:: int PyDict_ClearFreeList()
238-
239-
Clear the free list. Return the total number of freed items.
240-
241-
.. versionadded:: 3.3

Doc/c-api/float.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,3 @@ Floating Point Objects
7676
.. c:function:: double PyFloat_GetMin()
7777
7878
Return the minimum normalized positive float *DBL_MIN* as C :c:type:`double`.
79-
80-
.. c:function:: int PyFloat_ClearFreeList()
81-
82-
Clear the float free list. Return the number of items that could not
83-
be freed.

Doc/c-api/list.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,3 @@ List Objects
142142
143143
Return a new tuple object containing the contents of *list*; equivalent to
144144
``tuple(list)``.
145-
146-
147-
.. c:function:: int PyList_ClearFreeList()
148-
149-
Clear the free list. Return the total number of freed items.
150-
151-
.. versionadded:: 3.3

Doc/c-api/method.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,3 @@ no longer available.
9292
.. c:function:: PyObject* PyMethod_GET_SELF(PyObject *meth)
9393
9494
Macro version of :c:func:`PyMethod_Self` which avoids error checking.
95-
96-
97-
.. c:function:: int PyMethod_ClearFreeList()
98-
99-
Clear the free list. Return the total number of freed items.
100-

Doc/c-api/set.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,3 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
157157
.. c:function:: int PySet_Clear(PyObject *set)
158158
159159
Empty an existing set of all elements.
160-
161-
162-
.. c:function:: int PySet_ClearFreeList()
163-
164-
Clear the free list. Return the total number of freed items.
165-
166-
.. versionadded:: 3.3

Doc/c-api/tuple.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ Tuple Objects
111111
raises :exc:`MemoryError` or :exc:`SystemError`.
112112
113113
114-
.. c:function:: int PyTuple_ClearFreeList()
115-
116-
Clear the free list. Return the total number of freed items.
117-
118-
119114
Struct Sequence Objects
120115
-----------------------
121116

0 commit comments

Comments
 (0)