summaryrefslogtreecommitdiff
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
commitdb08b7b40907309ffa87f1ef8476166fba1f5716 (patch)
tree4ffe4b22b940cfaee84e351a2aaa5cf72855802f
parentdc4390bc9a16f2a1c862eb67efa66103e024b83a (diff)
downloadcpython-db08b7b40907309ffa87f1ef8476166fba1f5716.tar.gz
add warning about exception messages
-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}.