Pending removal in Python 3.18¶
Deprecated private functions (gh-128863):
_PyBytes_Join()
: usePyBytes_Join()
._PyDict_GetItemStringWithError()
: usePyDict_GetItemStringRef()
._PyDict_Pop()
:PyDict_Pop()
._PyLong_Sign()
: usePyLong_GetSign()
._PyLong_FromDigits()
and_PyLong_New()
: usePyLongWriter_Create()
._PyThreadState_UncheckedGet()
: usePyThreadState_GetUnchecked()
._PyUnicode_AsString()
: usePyUnicode_AsUTF8()
._PyUnicodeWriter_Init()
: replace_PyUnicodeWriter_Init(&writer)
withwriter = PyUnicodeWriter_Create(0)
._PyUnicodeWriter_Finish()
: replace_PyUnicodeWriter_Finish(&writer)
withPyUnicodeWriter_Finish(writer)
._PyUnicodeWriter_Dealloc()
: replace_PyUnicodeWriter_Dealloc(&writer)
withPyUnicodeWriter_Discard(writer)
._PyUnicodeWriter_WriteChar()
: replace_PyUnicodeWriter_WriteChar(&writer, ch)
withPyUnicodeWriter_WriteChar(writer, ch)
._PyUnicodeWriter_WriteStr()
: replace_PyUnicodeWriter_WriteStr(&writer, str)
withPyUnicodeWriter_WriteStr(writer, str)
._PyUnicodeWriter_WriteSubstring()
: replace_PyUnicodeWriter_WriteSubstring(&writer, str, start, end)
withPyUnicodeWriter_WriteSubstring(writer, str, start, end)
._PyUnicodeWriter_WriteASCIIString()
: replace_PyUnicodeWriter_WriteASCIIString(&writer, str)
withPyUnicodeWriter_WriteUTF8(writer, str)
._PyUnicodeWriter_WriteLatin1String()
: replace_PyUnicodeWriter_WriteLatin1String(&writer, str)
withPyUnicodeWriter_WriteUTF8(writer, str)
._PyUnicodeWriter_Prepare()
: (no replacement)._PyUnicodeWriter_PrepareKind()
: (no replacement)._Py_HashPointer()
: usePy_HashPointer()
._Py_fopen_obj()
: usePy_fopen()
.
The pythoncapi-compat project can be used to get these new public functions on Python 3.13 and older.