summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-11-25 17:18:54 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-11-25 17:18:54 (GMT)
commit7b08ff2003d2747ac5c1df16f1a308b171b718b0 (patch)
tree0ec6014f731a3f8338dd5267ad95279cfa8c9355 /Doc
parentf5e141f5608ca0fb2e610f81665bc608fa6649f5 (diff)
downloadcpython-7b08ff2003d2747ac5c1df16f1a308b171b718b0.zip
cpython-7b08ff2003d2747ac5c1df16f1a308b171b718b0.tar.gz
cpython-7b08ff2003d2747ac5c1df16f1a308b171b718b0.tar.bz2
Backport checkin:
SF patch #1364946: Add a reference link from the dcoumentation of the encode and decode methods to the documentation of the default error handlers.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcodecs.tex2
-rw-r--r--Doc/lib/libstdtypes.tex5
2 files changed, 4 insertions, 3 deletions
diff --git a/Doc/lib/libcodecs.tex b/Doc/lib/libcodecs.tex
index b4c1bc4..b65e1f4 100644
--- a/Doc/lib/libcodecs.tex
+++ b/Doc/lib/libcodecs.tex
@@ -212,7 +212,7 @@ The others represent the BOM in UTF-8 and UTF-32 encodings.
\end{datadesc}
-\subsection{Codec Base Classes}
+\subsection{Codec Base Classes \label{codec-base-classes}}
The \module{codecs} module defines a set of base classes which define the
interface and can also be used to easily write you own codecs for use
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 93ed0e7..0690783 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -590,7 +590,7 @@ may be given to set a different error handling scheme. The default is
\code{'strict'}, meaning that encoding errors raise
\exception{UnicodeError}. Other possible values are \code{'ignore'},
\code{'replace'} and any other name registered via
-\function{codecs.register_error}.
+\function{codecs.register_error}, see section~\ref{codec-base-classes}.
\versionadded{2.2}
\versionchanged[Support for other error handling schemes added]{2.3}
\end{methoddesc}
@@ -602,7 +602,8 @@ error handling scheme. The default for \var{errors} is
\code{'strict'}, meaning that encoding errors raise a
\exception{UnicodeError}. Other possible values are \code{'ignore'},
\code{'replace'}, \code{'xmlcharrefreplace'}, \code{'backslashreplace'}
-and any other name registered via \function{codecs.register_error}.
+and any other name registered via \function{codecs.register_error},
+see section~\ref{codec-base-classes}.
For a list of possible encodings, see section~\ref{standard-encodings}.
\versionadded{2.0}
\versionchanged[Support for \code{'xmlcharrefreplace'} and