File tree Expand file tree Collapse file tree 7 files changed +6
-27
lines changed Expand file tree Collapse file tree 7 files changed +6
-27
lines changed Original file line number Diff line number Diff line change @@ -197,11 +197,6 @@ access internal read-only data of Unicode objects:
197
197
.. versionadded :: 3.3
198
198
199
199
200
- .. c :function :: int PyUnicode_ClearFreeList ()
201
-
202
- Clear the free list. Return the total number of freed items.
203
-
204
-
205
200
.. c :function :: Py_ssize_t PyUnicode_GET_SIZE (PyObject *o)
206
201
207
202
Return the size of the deprecated :c:type: `Py_UNICODE ` representation, in
Original file line number Diff line number Diff line change @@ -235,6 +235,10 @@ Build and C API Changes
235
235
functions: the free lists of bound method objects have been removed.
236
236
(Contributed by Inada Naoki and Victor Stinner in :issue: `37340 `.)
237
237
238
+ * Remove ``PyUnicode_ClearFreeList() `` function: the Unicode free list has been
239
+ removed in Python 3.3.
240
+ (Contributed by Victor Stinner in :issue: `38896 `.)
241
+
238
242
239
243
Deprecated
240
244
==========
Original file line number Diff line number Diff line change @@ -328,17 +328,6 @@ PyAPI_FUNC(wchar_t*) PyUnicode_AsWideCharString(
328
328
329
329
PyAPI_FUNC (PyObject * ) PyUnicode_FromOrdinal (int ordinal );
330
330
331
- /* --- Free-list management ----------------------------------------------- */
332
-
333
- /* Clear the free list used by the Unicode implementation.
334
-
335
- This can be used to release memory used for objects on the free
336
- list back to the Python memory allocator.
337
-
338
- */
339
-
340
- PyAPI_FUNC (int ) PyUnicode_ClearFreeList (void );
341
-
342
331
/* === Builtin Codecs =====================================================
343
332
344
333
Many of these APIs take two arguments encoding and errors. These
Original file line number Diff line number Diff line change
1
+ Remove ``PyUnicode_ClearFreeList() `` function: the Unicode free list has
2
+ been removed in Python 3.3.
Original file line number Diff line number Diff line change @@ -1031,7 +1031,6 @@ clear_freelists(void)
1031
1031
{
1032
1032
(void )PyFrame_ClearFreeList ();
1033
1033
(void )PyTuple_ClearFreeList ();
1034
- (void )PyUnicode_ClearFreeList ();
1035
1034
(void )PyFloat_ClearFreeList ();
1036
1035
(void )PyList_ClearFreeList ();
1037
1036
(void )PyDict_ClearFreeList ();
Original file line number Diff line number Diff line change @@ -15332,14 +15332,6 @@ _PyUnicode_Init(void)
15332
15332
return _PyStatus_OK ();
15333
15333
}
15334
15334
15335
- /* Finalize the Unicode implementation */
15336
-
15337
- int
15338
- PyUnicode_ClearFreeList (void )
15339
- {
15340
- return 0 ;
15341
- }
15342
-
15343
15335
15344
15336
void
15345
15337
PyUnicode_InternInPlace (PyObject * * p )
@@ -15951,7 +15943,6 @@ _PyUnicode_Fini(PyThreadState *tstate)
15951
15943
Py_CLEAR (unicode_latin1 [i ]);
15952
15944
}
15953
15945
_PyUnicode_ClearStaticStrings ();
15954
- (void )PyUnicode_ClearFreeList ();
15955
15946
}
15956
15947
15957
15948
PyInterpreterState * interp = _PyInterpreterState_GET_UNSAFE ();
Original file line number Diff line number Diff line change @@ -649,7 +649,6 @@ EXPORTS
649
649
PyUnicode_AsWideChar=python39.PyUnicode_AsWideChar
650
650
PyUnicode_AsWideCharString=python39.PyUnicode_AsWideCharString
651
651
PyUnicode_BuildEncodingMap=python39.PyUnicode_BuildEncodingMap
652
- PyUnicode_ClearFreeList=python39.PyUnicode_ClearFreeList
653
652
PyUnicode_Compare=python39.PyUnicode_Compare
654
653
PyUnicode_CompareWithASCIIString=python39.PyUnicode_CompareWithASCIIString
655
654
PyUnicode_Concat=python39.PyUnicode_Concat
You can’t perform that action at this time.
0 commit comments