summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-11-19 21:51:35 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-11-19 21:51:35 (GMT)
commit72f861657a64ce708efcbb7683846cea99ec37c6 (patch)
treeb3f7d3259a2ad221ade167c431abf2607d672fa0
parent7f82f7955efb5ad32e142a3164341c53565c7df0 (diff)
downloadcpython-72f861657a64ce708efcbb7683846cea99ec37c6.zip
cpython-72f861657a64ce708efcbb7683846cea99ec37c6.tar.gz
cpython-72f861657a64ce708efcbb7683846cea99ec37c6.tar.bz2
Document additional error handling names available through PEP 293.
-rw-r--r--Doc/lib/libcodecs.tex8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/lib/libcodecs.tex b/Doc/lib/libcodecs.tex
index 121183b..44713f5 100644
--- a/Doc/lib/libcodecs.tex
+++ b/Doc/lib/libcodecs.tex
@@ -45,9 +45,13 @@ return a tuple of functions \code{(\var{encoder}, \var{decoder}, \var{stream_rea
Possible values for errors are \code{'strict'} (raise an exception
in case of an encoding error), \code{'replace'} (replace malformed
- data with a suitable replacement marker, such as \character{?}) and
+ data with a suitable replacement marker, such as \character{?}),
\code{'ignore'} (ignore malformed data and continue without further
- notice).
+ notice), \code{'xmlcharrefreplace'} (replace with the appropriate XML
+ character reference (for encoding only)) and \code{'backslashreplace'}
+ (replace with backslashed escape sequences (for encoding only)) as
+ well as any other error handling name defined via
+ \function{register_error()}.
In case a search function cannot find a given encoding, it should
return \code{None}.