summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-04-26 02:59:46 (GMT)
committerSkip Montanaro <skip@pobox.com>2003-04-26 02:59:46 (GMT)
commit02157566f3d8d253a00fb2c1f4b86dcca749a033 (patch)
treea5e028b44af2c3499ee2a8e20530edd2b1662feb /Doc/lib
parent468f44f1843d90ab515f4e28fcc8d9569570a635 (diff)
downloadcpython-02157566f3d8d253a00fb2c1f4b86dcca749a033.zip
cpython-02157566f3d8d253a00fb2c1f4b86dcca749a033.tar.gz
cpython-02157566f3d8d253a00fb2c1f4b86dcca749a033.tar.bz2
backport of note arising from bug 711019.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libmath.tex12
1 files changed, 11 insertions, 1 deletions
diff --git a/Doc/lib/libmath.tex b/Doc/lib/libmath.tex
index 0f286d4..d5294d8 100644
--- a/Doc/lib/libmath.tex
+++ b/Doc/lib/libmath.tex
@@ -17,7 +17,7 @@ complex result allows earlier detection of the unexpected complex
number used as a parameter, so that the programmer can determine how
and why it was generated in the first place.
-The following functions provided by this module:
+The following functions are provided by this module:
\begin{funcdesc}{acos}{x}
Return the arc cosine of \var{x}.
@@ -135,6 +135,16 @@ The mathematical constant \emph{pi}.
The mathematical constant \emph{e}.
\end{datadesc}
+\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}
+
\begin{seealso}
\seemodule{cmath}{Complex number versions of many of these functions.}
\end{seealso}