summaryrefslogtreecommitdiffstats
path: root/Doc/library/glob.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-06 19:33:41 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-06 19:33:41 (GMT)
commit28ab634fa6e733bd01786ae90c3f8173bf1f8ad0 (patch)
treed1f944ccfbd6058ba0490d7ac84e1ab446a2dc5e /Doc/library/glob.rst
parentea525a2d1a798f529b015f86b174d478806ac7ec (diff)
downloadcpython-28ab634fa6e733bd01786ae90c3f8173bf1f8ad0.zip
cpython-28ab634fa6e733bd01786ae90c3f8173bf1f8ad0.tar.gz
cpython-28ab634fa6e733bd01786ae90c3f8173bf1f8ad0.tar.bz2
Issue #25596: Optimized glob() and iglob() functions in the
glob module; they are now about 3--6 times faster.
Diffstat (limited to 'Doc/library/glob.rst')
-rw-r--r--Doc/library/glob.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst
index 328eef3..a8a5a50 100644
--- a/Doc/library/glob.rst
+++ b/Doc/library/glob.rst
@@ -14,7 +14,7 @@ The :mod:`glob` module finds all the pathnames matching a specified pattern
according to the rules used by the Unix shell, although results are returned in
arbitrary order. No tilde expansion is done, but ``*``, ``?``, and character
ranges expressed with ``[]`` will be correctly matched. This is done by using
-the :func:`os.listdir` and :func:`fnmatch.fnmatch` functions in concert, and
+the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and
not by actually invoking a subshell. Note that unlike :func:`fnmatch.fnmatch`,
:mod:`glob` treats filenames beginning with a dot (``.``) as special cases.
(For tilde and shell variable expansion, use :func:`os.path.expanduser` and