From d034b246e12d0ca5c4f4ace74f5020b2bf9035b5 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 20 Apr 2021 12:27:12 -0400 Subject: [PATCH] docs: clarify what patterns Path.glob accepts --- Doc/library/pathlib.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index f15fed3f02a044..122642ad5a41ed 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -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'),