mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #19676: Added the "namereplace" error handler.
This commit is contained in:
parent
6cecf68c7b
commit
166ebc4e5d
11 changed files with 255 additions and 7 deletions
|
@ -116,3 +116,8 @@ Registry API for Unicode encoding error handlers
|
|||
Replace the unicode encode error with backslash escapes (``\x``, ``\u`` and
|
||||
``\U``).
|
||||
|
||||
.. c:function:: PyObject* PyCodec_NameReplaceErrors(PyObject *exc)
|
||||
|
||||
Replace the unicode encode error with `\N{...}` escapes.
|
||||
|
||||
.. versionadded: 3.4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue