summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-14 14:10:18 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-14 14:10:18 (GMT)
commit77b20f099e6cbad346b18c0e6db94b6ab7fd4d39 (patch)
tree6aaba1d7fe662aa04d1cc7d02adf478e4529e0ab
parent9464a7de60e67f59d8773e868fb2271b32d837c6 (diff)
downloadcpython-77b20f099e6cbad346b18c0e6db94b6ab7fd4d39.zip
cpython-77b20f099e6cbad346b18c0e6db94b6ab7fd4d39.tar.gz
cpython-77b20f099e6cbad346b18c0e6db94b6ab7fd4d39.tar.bz2
Document filterwarnings(..., append=<bool>).
-rw-r--r--Doc/lib/libwarnings.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex
index ffb0afb..051c79d 100644
--- a/Doc/lib/libwarnings.tex
+++ b/Doc/lib/libwarnings.tex
@@ -178,8 +178,10 @@ contain embedded newlines and ends in a newline.
\begin{funcdesc}{filterwarnings}{action\optional{,
message\optional{, category\optional{,
- module\optional{, lineno}}}}}
-Insert an entry into the list of warnings filters (at the front).
+ module\optional{, lineno\optional{, append}}}}}}
+Insert an entry into the list of warnings filters. The entry is
+inserted at the front by default; if \var{append} is true, it is
+inserted at the end.
This checks the types of the arguments, compiles the message and
module regular expressions, and inserts them as a tuple in front
of the warnings filter. Entries inserted later override entries