]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document filter.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 7 Jun 2001 19:01:24 +0000 (19:01 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 7 Jun 2001 19:01:24 +0000 (19:01 +0000)
Doc/lib/libfnmatch.tex

index 4d184bc858a4b72aa2e27ea1d89d075ca1644fe8..888580a6dd6695871d2f18451abb1d4f18df57dc 100644 (file)
@@ -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.}