Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libcodecs.tex @ 26294:6d0cd80e2804 legacy-trunk
Document additional error handling names available through PEP 293.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Tue, 19 Nov 2002 21:51:35 +0000 |
| parents | 135f08b73bd5 |
| children | 55141144dab5 |
line wrap: on
line diff
--- a/Doc/lib/libcodecs.tex Tue Nov 19 21:42:53 2002 +0000 +++ b/Doc/lib/libcodecs.tex Tue Nov 19 21:51:35 2002 +0000 @@ -45,9 +45,13 @@ 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}.
