diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-01-20 10:43:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 10:43:22 (GMT) |
commit | 8f334dbbf04582071d1318e5817e2fe99f1e5169 (patch) | |
tree | 8cdd822a6ac63dc76529ffe4381ddad7fbe17866 /Doc/library | |
parent | 648b72900b5039ab46b8b459f921daecb8db2a6b (diff) | |
download | cpython-8f334dbbf04582071d1318e5817e2fe99f1e5169.zip cpython-8f334dbbf04582071d1318e5817e2fe99f1e5169.tar.gz cpython-8f334dbbf04582071d1318e5817e2fe99f1e5169.tar.bz2 |
bpo-36769: Document that fnmatch.filter supports any kind of iterable (GH-13039)
(cherry picked from commit e8d22642105d57007ab1242848a8cbadc7f179df)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/fnmatch.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index ce07d32..925f08e 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -75,7 +75,7 @@ patterns. .. function:: filter(names, pattern) - Return the subset of the list of *names* that match *pattern*. It is the same as + Construct a list from those elements of the iterable *names* that match *pattern*. It is the same as ``[n for n in names if fnmatch(n, pattern)]``, but implemented more efficiently. |