Skip to content

Commit b2b6cd0

Browse files
authored
docs: clarify what patterns Path.glob accepts (GH-25486)
Automerge-Triggered-By: GH:Yhg1s
1 parent 3309113 commit b2b6cd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/pathlib.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,9 @@ call fails (for example because the path doesn't exist).
798798
>>> sorted(Path('.').glob('*/*.py'))
799799
[PosixPath('docs/conf.py')]
800800

801-
The "``**``" pattern means "this directory and all subdirectories,
802-
recursively". In other words, it enables recursive globbing::
801+
Patterns are the same as for :mod:`fnmatch`, with the addition of "``**``"
802+
which means "this directory and all subdirectories, recursively". In other
803+
words, it enables recursive globbing::
803804

804805
>>> sorted(Path('.').glob('**/*.py'))
805806
[PosixPath('build/lib/pathlib.py'),

0 commit comments

Comments
 (0)