.. versionadded:: 3.3
-.. c:function:: int PyUnicode_ClearFreeList()
-
- Clear the free list. Return the total number of freed items.
-
-
.. c:function:: Py_ssize_t PyUnicode_GET_SIZE(PyObject *o)
Return the size of the deprecated :c:type:`Py_UNICODE` representation, in
functions: the free lists of bound method objects have been removed.
(Contributed by Inada Naoki and Victor Stinner in :issue:`37340`.)
+* Remove ``PyUnicode_ClearFreeList()`` function: the Unicode free list has been
+ removed in Python 3.3.
+ (Contributed by Victor Stinner in :issue:`38896`.)
+
Deprecated
==========
PyAPI_FUNC(PyObject*) PyUnicode_FromOrdinal(int ordinal);
-/* --- Free-list management ----------------------------------------------- */
-
-/* Clear the free list used by the Unicode implementation.
-
- This can be used to release memory used for objects on the free
- list back to the Python memory allocator.
-
-*/
-
-PyAPI_FUNC(int) PyUnicode_ClearFreeList(void);
-
/* === Builtin Codecs =====================================================
Many of these APIs take two arguments encoding and errors. These
--- /dev/null
+Remove ``PyUnicode_ClearFreeList()`` function: the Unicode free list has
+been removed in Python 3.3.
{
(void)PyFrame_ClearFreeList();
(void)PyTuple_ClearFreeList();
- (void)PyUnicode_ClearFreeList();
(void)PyFloat_ClearFreeList();
(void)PyList_ClearFreeList();
(void)PyDict_ClearFreeList();
return _PyStatus_OK();
}
-/* Finalize the Unicode implementation */
-
-int
-PyUnicode_ClearFreeList(void)
-{
- return 0;
-}
-
void
PyUnicode_InternInPlace(PyObject **p)
Py_CLEAR(unicode_latin1[i]);
}
_PyUnicode_ClearStaticStrings();
- (void)PyUnicode_ClearFreeList();
}
PyInterpreterState *interp = _PyInterpreterState_GET_UNSAFE();
PyUnicode_AsWideChar=python39.PyUnicode_AsWideChar
PyUnicode_AsWideCharString=python39.PyUnicode_AsWideCharString
PyUnicode_BuildEncodingMap=python39.PyUnicode_BuildEncodingMap
- PyUnicode_ClearFreeList=python39.PyUnicode_ClearFreeList
PyUnicode_Compare=python39.PyUnicode_Compare
PyUnicode_CompareWithASCIIString=python39.PyUnicode_CompareWithASCIIString
PyUnicode_Concat=python39.PyUnicode_Concat