mirror of https://github.com/python/cpython
Document 1.5.2+ aspects of the NotANumber exception. (Note that this
is in the development branch, not the maintenance branch!)
This commit is contained in:
parent
89ab163479
commit
b9bdfc6a23
|
@ -38,8 +38,11 @@ Return value is a string.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{excdesc}{NotANumber}
|
\begin{excdesc}{NotANumber}
|
||||||
Exception raised when a string does not look like a number when the
|
Exception raised when a string passed to \function{fix()} or
|
||||||
documentation says it should.
|
\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}
|
\end{excdesc}
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
Loading…
Reference in New Issue