]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
docs: clarify what patterns Path.glob accepts (GH-25486)
authorNed Batchelder <ned@nedbatchelder.com>
Tue, 20 Apr 2021 16:45:45 +0000 (12:45 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Apr 2021 16:45:45 +0000 (09:45 -0700)
Automerge-Triggered-By: GH:Yhg1s
Doc/library/pathlib.rst

index f15fed3f02a044a94e450de196f1c7a841cada8d..122642ad5a41ed074323d8de0fb9bd95d885fa52 100644 (file)
@@ -798,8 +798,9 @@ call fails (for example because the path doesn't exist).
       >>> sorted(Path('.').glob('*/*.py'))
       [PosixPath('docs/conf.py')]
 
-   The "``**``" pattern means "this directory and all subdirectories,
-   recursively".  In other words, it enables recursive globbing::
+   Patterns are the same as for :mod:`fnmatch`, with the addition of "``**``"
+   which means "this directory and all subdirectories, recursively".  In other
+   words, it enables recursive globbing::
 
       >>> sorted(Path('.').glob('**/*.py'))
       [PosixPath('build/lib/pathlib.py'),