summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfnmatch.tex
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-07 19:01:24 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-06-07 19:01:24 (GMT)
commite2ccb89513c2a487576fcec627aa7d50a719c444 (patch)
treecccbc40126dc4c2010bc69ceb5aadfddc6a39337 /Doc/lib/libfnmatch.tex
parentfbb2b4c4a5f38f8337f637b31300eb218608d050 (diff)
downloadcpython-e2ccb89513c2a487576fcec627aa7d50a719c444.zip
cpython-e2ccb89513c2a487576fcec627aa7d50a719c444.tar.gz
cpython-e2ccb89513c2a487576fcec627aa7d50a719c444.tar.bz2
Document filter.
Diffstat (limited to 'Doc/lib/libfnmatch.tex')
-rw-r--r--Doc/lib/libfnmatch.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libfnmatch.tex b/Doc/lib/libfnmatch.tex
index 4d184bc..888580a6 100644
--- a/Doc/lib/libfnmatch.tex
+++ b/Doc/lib/libfnmatch.tex
@@ -43,6 +43,11 @@ Test whether \var{filename} matches \var{pattern}, returning true or
false; the comparison is case-sensitive.
\end{funcdesc}
+\begin{funcdesc}{filter}{names, pattern}
+Return the subset of the list of \var{names} that match \var{pattern}.
+It is the same as \code{[n for n in names if fnmatch(n, pattern)]}, but
+implemented more efficiently.
+\end{funcdesc}
\begin{seealso}
\seemodule{glob}{\UNIX{} shell-style path expansion.}