summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/codec.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api/codec.rst')
-rw-r--r--Doc/c-api/codec.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/c-api/codec.rst b/Doc/c-api/codec.rst
index 83252af..5bb56e3 100644
--- a/Doc/c-api/codec.rst
+++ b/Doc/c-api/codec.rst
@@ -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