From: Martin v. Löwis Date: Thu, 7 Jun 2001 19:01:24 +0000 (+0000) Subject: Document filter. X-Git-Tag: v2.2a3~1600 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2ccb89513c2a487576fcec627aa7d50a719c444;p=thirdparty%2FPython%2Fcpython.git Document filter. --- diff --git a/Doc/lib/libfnmatch.tex b/Doc/lib/libfnmatch.tex index 4d184bc858a4..888580a6dd66 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.}