From: Fred Drake Date: Tue, 21 Dec 1999 18:45:16 +0000 (+0000) Subject: Document 1.5.2+ aspects of the NotANumber exception. (Note that this X-Git-Tag: v1.6a1~592 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9bdfc6a230f846a1cd1c681def83cf04d357587;p=thirdparty%2FPython%2Fcpython.git Document 1.5.2+ aspects of the NotANumber exception. (Note that this is in the development branch, not the maintenance branch!) --- diff --git a/Doc/lib/libfpformat.tex b/Doc/lib/libfpformat.tex index 94e434c2b99a..c67d83468b70 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: