gh-127787: refactor helpers for `PyUnicodeErrorObject` internal inter… · python/cpython@fa985be

GitHub

Original file line numberDiff line numberDiff line change@@ -94,6 +94,12 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);

94949595/* In exceptions.c */

969697+PyAPI_FUNC(int) _PyUnicodeError_GetParams(

98+PyObject*self,

99+PyObject**obj, Py_ssize_t*objlen,

100+Py_ssize_t*start, Py_ssize_t*end,

101+intas_bytes);

102+97103PyAPI_FUNC(PyObject*) PyUnstable_Exc_PrepReraiseStar(

98104PyObject*orig,

99105PyObject*excs);