mirror of
https://github.com/python/cpython.git
synced 2025-10-18 12:48:57 +00:00
add warning about exception messages
This commit is contained in:
parent
9240be2a35
commit
ee113f08f8
1 changed files with 7 additions and 0 deletions
|
@ -197,5 +197,12 @@ selection of an exception handler, but is passed to the selected
|
||||||
exception handler as additional information. For class exceptions,
|
exception handler as additional information. For class exceptions,
|
||||||
this object must be an instance of the exception class being raised.
|
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
|
See also the description of the \keyword{try} statement in section
|
||||||
\ref{try} and \keyword{raise} statement in section \ref{raise}.
|
\ref{try} and \keyword{raise} statement in section \ref{raise}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue