[issue41099] Deprecating PyUnicodeTranslateError_Create

2020-06-25 Thread Inada Naoki
Inada Naoki added the comment: I added deprecated directive in GH-21162. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue41099] Deprecating PyUnicodeTranslateError_Create

2020-06-25 Thread Inada Naoki
Inada Naoki added the comment: I prefer `PyObject_CallFunction(PyExc_UnicodeTranslateError, ...)` because UnicodeTranslateError is not so popular for third party libraries. I don't think we should provide public stable API for convenient. -- ___ P

[issue41099] Deprecating PyUnicodeTranslateError_Create

2020-06-24 Thread Inada Naoki
New submission from Inada Naoki : PyUnicodeTranslateError_Create marked as Py_DEPRECATED since it receives Py_UNICODE* as an argument. But it is not deprecated in the document. On the other hand, we have alternative private API which accepts Unicode object: _PyUnicodeTranslateError_Create.