]> granicus.if.org Git - python/commitdiff
add warning about exception messages
authorSkip Montanaro <skip@pobox.com>
Wed, 28 Aug 2002 01:14:57 +0000 (01:14 +0000)
committerSkip Montanaro <skip@pobox.com>
Wed, 28 Aug 2002 01:14:57 +0000 (01:14 +0000)
Doc/ref/ref4.tex

index 6e893f19e474abef1f5d0c5899605f4ceee8d73c..00f305864bd3ddc10f717311667967c6e099c1b4 100644 (file)
@@ -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}.