Document filter.

This commit is contained in:
Martin v. Löwis 2001-06-07 19:01:24 +00:00
parent fbb2b4c4a5
commit e2ccb89513
1 changed files with 5 additions and 0 deletions

View 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.}