[New-bugs-announce] [issue41098] Deprecating PyUnicodeEncodeError_Create

Inada Naoki report at bugs.python.org
Wed Jun 24 04:42:38 EDT 2020


New submission from Inada Naoki <songofacandy at gmail.com>:

PyUnicodeEncodeError_Create is using Py_UNICODE and is marked Py_DEPRECATED(3.3).
But it is not deprecated in doc yet.

There are no alternative API.  In CPython code base, UnicodeEncodeError is created by `PyObject_CallFunction(PyExc_UnicodeEncodeError, ...)`.

Can we just document it as deprecated since Python 3.3?
Or should we add alternative API?

----------
components: C API
messages: 372241
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Deprecating PyUnicodeEncodeError_Create
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41098>
_______________________________________


More information about the New-bugs-announce mailing list