summaryrefslogtreecommitdiff
path: root/Doc/ref/ref4.tex
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-08-28 01:14:57 +0000
committerSkip Montanaro <skip@pobox.com>2002-08-28 01:14:57 +0000
commitee113f08f81640e651352a222d01895c5fd8535c (patch)
treef301b141622dc1cba4687aa3f57e0bdf95d6ca10 /Doc/ref/ref4.tex
parent9240be2a357260ed7910b0b666140abd4e7395e2 (diff)
downloadcpython-git-ee113f08f81640e651352a222d01895c5fd8535c.tar.gz
add warning about exception messages
Diffstat (limited to 'Doc/ref/ref4.tex')
-rw-r--r--Doc/ref/ref4.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/ref/ref4.tex b/Doc/ref/ref4.tex
index 6e893f19e4..00f305864b 100644
--- a/Doc/ref/ref4.tex
+++ b/Doc/ref/ref4.tex
@@ -197,5 +197,12 @@ selection of an exception handler, but is passed to the selected
exception handler as additional information. For class exceptions,
this object must be an instance of the exception class being raised.
+\begin{notice}[warning]
+Messages to exceptions are not part of the Python API. Their contents may
+change from one version of Python to the next without warning and should not
+be relied on by code which will run under multiple versions of the
+interpreter.
+\end{notice}
+
See also the description of the \keyword{try} statement in section
\ref{try} and \keyword{raise} statement in section \ref{raise}.