[Python-checkins] python/dist/src/Doc/lib libmath.tex,1.29,1.30
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sat, 26 Apr 2003 08:11:11 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv7219/python/Doc/lib
Modified Files:
libmath.tex
Log Message:
Clarified new text about math exceptions.
Bugfix candidate.
Index: libmath.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libmath.tex,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** libmath.tex 26 Apr 2003 02:59:00 -0000 1.29
--- libmath.tex 26 Apr 2003 15:11:08 -0000 1.30
***************
*** 147,157 ****
\begin{notice}
! Specific exceptions raised in assorted error cases (and even whether some
arguments are considered to be exceptional at all) are not defined in any
useful cross-platform or cross-release way. For example, whether
\code{math.log(0)} returns \code{-Inf} or raises \exception{ValueError} or
! \exception{OverflowError} is both platform- and release-dependent, and in
! cases where \code{math.log(0)} raises an \exception{OverflowError},
! \code{math.log(0L)} often raises a \exception{ValueError}.
\end{notice}
--- 147,162 ----
\begin{notice}
! The \module{math} module consists mostly of thin wrappers around
! the platform C math library functions. Behavior in exceptional cases is
! loosely specified by the C standards, and Python inherits much of its
! math-function error-reporting behavior from the platform C
! implementation. As a result,
! the specific exceptions raised in error cases (and even whether some
arguments are considered to be exceptional at all) are not defined in any
useful cross-platform or cross-release way. For example, whether
\code{math.log(0)} returns \code{-Inf} or raises \exception{ValueError} or
! \exception{OverflowError} isn't defined, and in
! cases where \code{math.log(0)} raises \exception{OverflowError},
! \code{math.log(0L)} may raise \exception{ValueError} instead.
\end{notice}