mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
More updates describing FutureWarnings.
This commit is contained in:
parent
2f238c1b22
commit
b8c20a723f
3 changed files with 13 additions and 1 deletions
|
@ -362,7 +362,7 @@ Raised when an \keyword{assert} statement fails.
|
|||
\setindexsubitem{(built-in warning)}
|
||||
|
||||
The following exceptions are used as warning categories; see the
|
||||
\module{warnings} module for more information.
|
||||
\refmodule{warnings} module for more information.
|
||||
|
||||
\begin{excdesc}{Warning}
|
||||
Base class for warning categories.
|
||||
|
@ -388,6 +388,11 @@ Base class for warnings about dubious syntax
|
|||
Base class for warnings about dubious runtime behavior.
|
||||
\end{excdesc}
|
||||
|
||||
\begin{excdesc}{FutureWarning}
|
||||
Base class for warnings about constructs that will change semantically
|
||||
in the future.
|
||||
\end{excdesc}
|
||||
|
||||
The class hierarchy for built-in exceptions is:
|
||||
|
||||
\begin{verbatim}
|
||||
|
@ -431,4 +436,5 @@ The class hierarchy for built-in exceptions is:
|
|||
+-- SyntaxWarning
|
||||
+-- OverflowWarning
|
||||
+-- RuntimeWarning
|
||||
+-- FutureWarning
|
||||
\end{verbatim}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue