Unless documented on the page you linked, unicodeobject.c contains as
int _PyUnicode_Resize(PyUnicodeObject **unicode, Py_ssize_t length)
and wrapper
int PyUnicode_Resize(PyObject **unicode, Py_ssize_t length)
{
return _PyUnicode_Resize((PyUnicodeObject **)unicode, length);
}
I do not know if the lack of documentation is an oversight or calm fatigue (I never used any of them).
source
share