Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72f8616

Browse files
committed
Document additional error handling names available through PEP 293.
1 parent 7f82f79 commit 72f8616

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/lib/libcodecs.tex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ \section{\module{codecs} ---
4545

4646
Possible values for errors are \code{'strict'} (raise an exception
4747
in case of an encoding error), \code{'replace'} (replace malformed
48-
data with a suitable replacement marker, such as \character{?}) and
48+
data with a suitable replacement marker, such as \character{?}),
4949
\code{'ignore'} (ignore malformed data and continue without further
50-
notice).
50+
notice), \code{'xmlcharrefreplace'} (replace with the appropriate XML
51+
character reference (for encoding only)) and \code{'backslashreplace'}
52+
(replace with backslashed escape sequences (for encoding only)) as
53+
well as any other error handling name defined via
54+
\function{register_error()}.
5155

5256
In case a search function cannot find a given encoding, it should
5357
return \code{None}.

0 commit comments

Comments
 (0)