mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
docs: be clearer that glob results are unordered (#140184)
* docs: be clearer that glob results are unordered * trim down the opening paragraph
This commit is contained in:
parent
f9323213c9
commit
ed672f7a8a
2 changed files with 18 additions and 8 deletions
|
|
@ -22,6 +22,9 @@ def glob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
|
|||
dot are special cases that are not matched by '*' and '?'
|
||||
patterns by default.
|
||||
|
||||
The order of the returned list is undefined. Sort it if you need a
|
||||
particular order.
|
||||
|
||||
If `include_hidden` is true, the patterns '*', '?', '**' will match hidden
|
||||
directories.
|
||||
|
||||
|
|
@ -40,6 +43,9 @@ def iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
|
|||
dot are special cases that are not matched by '*' and '?'
|
||||
patterns.
|
||||
|
||||
The order of the returned paths is undefined. Sort them if you need a
|
||||
particular order.
|
||||
|
||||
If recursive is true, the pattern '**' will match any files and
|
||||
zero or more directories and subdirectories.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue