summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfpformat.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-12-21 18:45:16 (GMT)
committerFred Drake <fdrake@acm.org>1999-12-21 18:45:16 (GMT)
commitb9bdfc6a230f846a1cd1c681def83cf04d357587 (patch)
tree559817f1a6d9ab0a614bc3bdf88abdbd780f3858 /Doc/lib/libfpformat.tex
parent89ab16347905fbf389a3bced117f605742ce52cc (diff)
downloadcpython-b9bdfc6a230f846a1cd1c681def83cf04d357587.zip
cpython-b9bdfc6a230f846a1cd1c681def83cf04d357587.tar.gz
cpython-b9bdfc6a230f846a1cd1c681def83cf04d357587.tar.bz2
Document 1.5.2+ aspects of the NotANumber exception. (Note that this
is in the development branch, not the maintenance branch!)
Diffstat (limited to 'Doc/lib/libfpformat.tex')
-rw-r--r--Doc/lib/libfpformat.tex7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libfpformat.tex b/Doc/lib/libfpformat.tex
index 94e434c..c67d834 100644
--- a/Doc/lib/libfpformat.tex
+++ b/Doc/lib/libfpformat.tex
@@ -38,8 +38,11 @@ Return value is a string.
\end{funcdesc}
\begin{excdesc}{NotANumber}
-Exception raised when a string does not look like a number when the
-documentation says it should.
+Exception raised when a string passed to \function{fix()} or
+\function{sci()} as the \var{x} parameter does not look like a number.
+This is a subclass of \exception{ValueError} when the standard
+exceptions are strings. The exception value is the improperly
+formatted string that caused the exception to be raised.
\end{excdesc}
Example: