summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-17 13:16:34 +0000
committerGuido van Rossum <guido@python.org>1994-08-17 13:16:34 +0000
commit749c36a7af3623fca4041627ef271daf25a8bc37 (patch)
treee6b5bab7897c7e183721ada540db6bea30a0ac49 /Doc
parent65ef2416abc7619207b54f1db2a24073195706ee (diff)
downloadcpython-749c36a7af3623fca4041627ef271daf25a8bc37.tar.gz
* Doc/libstring.tex (section{Standard Module \sectcode{string}}):
removed references to {ato{f,i,l},index}_error
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstring.tex32
-rw-r--r--Doc/libstring.tex32
2 files changed, 4 insertions, 60 deletions
diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex
index 7d99a360a9..1c4e90d708 100644
--- a/Doc/lib/libstring.tex
+++ b/Doc/lib/libstring.tex
@@ -52,34 +52,6 @@ The exceptions are:
\renewcommand{\indexsubitem}{(exception in module string)}
-\begin{excdesc}{atof_error}
-Exception raised by
-\code{atof}
-when a non-float string argument is detected.
-The exception argument is the offending string.
-\end{excdesc}
-
-\begin{excdesc}{atoi_error}
-Exception raised by
-\code{atoi}
-when a non-integer string argument is detected.
-The exception argument is the offending string.
-\end{excdesc}
-
-\begin{excdesc}{atol_error}
-Exception raised by
-\code{atol}
-when a non-integer string argument is detected.
-The exception argument is the offending string.
-\end{excdesc}
-
-\begin{excdesc}{index_error}
-Exception raised by \code{index} when \var{sub} is not found.
-The exception argument is undefined (it may be a tuple containing the
-offending arguments to \code{index} or it may be the constant string
-\code{'substring not found'}).
-\end{excdesc}
-
The functions are:
\renewcommand{\indexsubitem}{(in module string)}
@@ -121,12 +93,12 @@ Like \code{find} but finds the highest index.
\end{funcdesc}
\begin{funcdesc}{index}{s\, sub\optional{\, start}}
-Like \code{find} but raise \code{index_error} when the substring is
+Like \code{find} but raise \code{ValueError} when the substring is
not found.
\end{funcdesc}
\begin{funcdesc}{rindex}{s\, sub\optional{\, start}}
-Like \code{rfind} but raise \code{index_error} when the substring is
+Like \code{rfind} but raise \code{ValueError} when the substring is
not found.
\end{funcdesc}
diff --git a/Doc/libstring.tex b/Doc/libstring.tex
index 7d99a360a9..1c4e90d708 100644
--- a/Doc/libstring.tex
+++ b/Doc/libstring.tex
@@ -52,34 +52,6 @@ The exceptions are:
\renewcommand{\indexsubitem}{(exception in module string)}
-\begin{excdesc}{atof_error}
-Exception raised by
-\code{atof}
-when a non-float string argument is detected.
-The exception argument is the offending string.
-\end{excdesc}
-
-\begin{excdesc}{atoi_error}
-Exception raised by
-\code{atoi}
-when a non-integer string argument is detected.
-The exception argument is the offending string.
-\end{excdesc}
-
-\begin{excdesc}{atol_error}
-Exception raised by
-\code{atol}
-when a non-integer string argument is detected.
-The exception argument is the offending string.
-\end{excdesc}
-
-\begin{excdesc}{index_error}
-Exception raised by \code{index} when \var{sub} is not found.
-The exception argument is undefined (it may be a tuple containing the
-offending arguments to \code{index} or it may be the constant string
-\code{'substring not found'}).
-\end{excdesc}
-
The functions are:
\renewcommand{\indexsubitem}{(in module string)}
@@ -121,12 +93,12 @@ Like \code{find} but finds the highest index.
\end{funcdesc}
\begin{funcdesc}{index}{s\, sub\optional{\, start}}
-Like \code{find} but raise \code{index_error} when the substring is
+Like \code{find} but raise \code{ValueError} when the substring is
not found.
\end{funcdesc}
\begin{funcdesc}{rindex}{s\, sub\optional{\, start}}
-Like \code{rfind} but raise \code{index_error} when the substring is
+Like \code{rfind} but raise \code{ValueError} when the substring is
not found.
\end{funcdesc}