mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
gh-104269: Document glob.glob
duplicates when using multiple **
patterns (#105406)
This commit is contained in:
parent
b8eaad3009
commit
c06be6bbb8
1 changed files with 8 additions and 0 deletions
|
@ -75,6 +75,10 @@ The :mod:`glob` module defines the following functions:
|
|||
Using the "``**``" pattern in large directory trees may consume
|
||||
an inordinate amount of time.
|
||||
|
||||
.. note::
|
||||
This function may return duplicate path names if *pathname*
|
||||
contains multiple "``**``" patterns and *recursive* is true.
|
||||
|
||||
.. versionchanged:: 3.5
|
||||
Support for recursive globs using "``**``".
|
||||
|
||||
|
@ -94,6 +98,10 @@ The :mod:`glob` module defines the following functions:
|
|||
.. audit-event:: glob.glob pathname,recursive glob.iglob
|
||||
.. audit-event:: glob.glob/2 pathname,recursive,root_dir,dir_fd glob.iglob
|
||||
|
||||
.. note::
|
||||
This function may return duplicate path names if *pathname*
|
||||
contains multiple "``**``" patterns and *recursive* is true.
|
||||
|
||||
.. versionchanged:: 3.5
|
||||
Support for recursive globs using "``**``".
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue