diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-06-22 13:10:23 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-06-22 13:10:23 (GMT) |
commit | f6a84f5615b4b6d43cdca925f7705bdccdcfa10e (patch) | |
tree | 6b16097910fcc73b82351d4ab118767af88b08d6 /Doc/whatsnew | |
parent | 418e73d89f6ea1af0f06c1a95266a1948796b430 (diff) | |
download | cpython-f6a84f5615b4b6d43cdca925f7705bdccdcfa10e.zip cpython-f6a84f5615b4b6d43cdca925f7705bdccdcfa10e.tar.gz cpython-f6a84f5615b4b6d43cdca925f7705bdccdcfa10e.tar.bz2 |
Mention how to suppress warnings
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 84bab8f..af59867 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -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 \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. As an example, this is now legal: @@ -2396,8 +2406,8 @@ freed with the corresponding family's \cfunction{*_Free()} function. The author would like to thank the following people for offering suggestions, corrections and assistance with various drafts of this -article: Phillip J. Eby, Kent Johnson, Martin von~L\"owis, Fredrik Lundh, -Gustavo Niemeyer, James Pryor, Mike Rovner, Scott Weikart, Barry Warsaw, -Thomas Wouters. +article: Phillip J. Eby, "Ralf W. Grosse-Kunstleve, Kent Johnson, +Martin von~L\"owis, Fredrik Lundh, Gustavo Niemeyer, James Pryor, Mike +Rovner, Scott Weikart, Barry Warsaw, Thomas Wouters. \end{document} |