Kaydet (Commit) f6a84f56 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Mention how to suppress warnings

üst 418e73d8
...@@ -1174,6 +1174,16 @@ In Python 2.5, a new \exception{ImportWarning} warning is raised when ...@@ -1174,6 +1174,16 @@ In Python 2.5, a new \exception{ImportWarning} warning is raised when
an import would have picked up a directory as a package but no an import would have picked up a directory as a package but no
\file{__init__.py} was found. (Implemented by Thomas Wouters.) \file{__init__.py} was found. (Implemented by Thomas Wouters.)
To suppress these warnings, you can either supply
\command{-W'ignore:Not importing directory'} when running the Python
interpreter, or use the \module{warnings} module to suppress the
message:
\begin{verbatim}
warnings.filterwarnings('ignore', 'Not importing directory',
ImportWarning)
\end{verbatim}
\item The list of base classes in a class definition can now be empty. \item The list of base classes in a class definition can now be empty.
As an example, this is now legal: As an example, this is now legal:
...@@ -2396,8 +2406,8 @@ freed with the corresponding family's \cfunction{*_Free()} function. ...@@ -2396,8 +2406,8 @@ freed with the corresponding family's \cfunction{*_Free()} function.
The author would like to thank the following people for offering The author would like to thank the following people for offering
suggestions, corrections and assistance with various drafts of this suggestions, corrections and assistance with various drafts of this
article: Phillip J. Eby, Kent Johnson, Martin von~L\"owis, Fredrik Lundh, article: Phillip J. Eby, "Ralf W. Grosse-Kunstleve, Kent Johnson,
Gustavo Niemeyer, James Pryor, Mike Rovner, Scott Weikart, Barry Warsaw, Martin von~L\"owis, Fredrik Lundh, Gustavo Niemeyer, James Pryor, Mike
Thomas Wouters. Rovner, Scott Weikart, Barry Warsaw, Thomas Wouters.
\end{document} \end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment