[Python-checkins] Doc: recursive glob ** follows symlinks to directories (GH-12918)

Julien Palard webhook-mailer at python.org
Wed Sep 11 13:17:09 EDT 2019


https://github.com/python/cpython/commit/e24594bfe75aff3e654665cb940ddc4d4acffd2f
commit: e24594bfe75aff3e654665cb940ddc4d4acffd2f
branch: master
author: Marc <Marc.Herbert+github at gmail.com>
committer: Julien Palard <julien at palard.fr>
date: 2019-09-11T19:17:05+02:00
summary:

Doc: recursive glob ** follows symlinks to directories (GH-12918)

files:
M Doc/library/glob.rst

diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst
index 96584437cef1..92a8c4d1eb87 100644
--- a/Doc/library/glob.rst
+++ b/Doc/library/glob.rst
@@ -49,8 +49,9 @@ For example, ``'[?]'`` matches the character ``'?'``.
       single: **; in glob-style wildcards
 
    If *recursive* is true, the pattern "``**``" will match any files and zero or
-   more directories and subdirectories.  If the pattern is followed by an
-   ``os.sep``, only directories and subdirectories match.
+   more directories, subdirectories and symbolic links to directories. If the
+   pattern is followed by an :data:`os.sep` or :data:`os.altsep` then files will not
+   match.
 
    .. audit-event:: glob.glob pathname,recursive glob.glob
 



More information about the Python-checkins mailing list