Skip to content

Commit 6e2fbda

Browse files
authored
docs: use 'recursively' in the description of rglob, and mention globs in the os equivalences (GH-94954)
The r in `rglob` stands for "recursively", so use the word in the description. Also, glob and rglob can usefully be mentioned as the pathlib equivalent of os.walk. Automerge-Triggered-By: GH:brettcannon
1 parent fd4a42d commit 6e2fbda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/pathlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,8 @@ call fails (for example because the path doesn't exist).
11221122

11231123
.. method:: Path.rglob(pattern)
11241124

1125-
This is like calling :func:`Path.glob` with "``**/``" added in front of the
1126-
given relative *pattern*::
1125+
Glob the given relative *pattern* recursively. This is like calling
1126+
:func:`Path.glob` with "``**/``" added in front of the *pattern*::
11271127

11281128
>>> sorted(Path().rglob("*.py"))
11291129
[PosixPath('build/lib/pathlib.py'),

0 commit comments

Comments
 (0)