This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecating PyUnicodeTranslateError_Create
Type: Stage:
Components: C API Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: methane
Priority: normal Keywords:

Created on 2020-06-24 08:51 by methane, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg372242 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2020-06-24 08:51
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.  Should we make it public?

Otherwise, we can recommend `PyObject_CallFunction(PyExc_UnicodeTranslateError, ...)` as an alternative.
msg372401 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2020-06-26 01:49
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.
msg372403 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2020-06-26 01:56
I added deprecated directive in GH-21162.
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85271
2020-06-26 01:56:53methanesetmessages: + msg372403
2020-06-26 01:49:50methanesetmessages: + msg372401
2020-06-24 08:51:17methanecreate