Skip to content

Commit c06be6b

Browse files
authored
gh-104269: Document glob.glob duplicates when using multiple ** patterns (#105406)
1 parent b8eaad3 commit c06be6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/glob.rst

+8
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ The :mod:`glob` module defines the following functions:
7575
Using the "``**``" pattern in large directory trees may consume
7676
an inordinate amount of time.
7777

78+
.. note::
79+
This function may return duplicate path names if *pathname*
80+
contains multiple "``**``" patterns and *recursive* is true.
81+
7882
.. versionchanged:: 3.5
7983
Support for recursive globs using "``**``".
8084

@@ -94,6 +98,10 @@ The :mod:`glob` module defines the following functions:
9498
.. audit-event:: glob.glob pathname,recursive glob.iglob
9599
.. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
96100

101+
.. note::
102+
This function may return duplicate path names if *pathname*
103+
contains multiple "``**``" patterns and *recursive* is true.
104+
97105
.. versionchanged:: 3.5
98106
Support for recursive globs using "``**``".
99107

0 commit comments

Comments
 (0)