mirror of
https://github.com/python/cpython.git
synced 2026-04-17 17:31:04 +00:00
[3.13] gh-142972: Document arbitrary ordering in Path.glob and Path.rglob (GH-143025) (GH-143710)
gh-142972: Document arbitrary ordering in `Path.glob` and `Path.rglob` (GH-143025)
(cherry picked from commit 9d13ca97c1)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
parent
cf5b31c31a
commit
18eeec4bea
1 changed files with 8 additions and 0 deletions
|
|
@ -1287,6 +1287,10 @@ Reading directories
|
|||
PosixPath('setup.py'),
|
||||
PosixPath('test_pathlib.py')]
|
||||
|
||||
.. note::
|
||||
The paths are returned in no particular order.
|
||||
If you need a specific order, sort the results.
|
||||
|
||||
.. seealso::
|
||||
:ref:`pathlib-pattern-language` documentation.
|
||||
|
||||
|
|
@ -1321,6 +1325,10 @@ Reading directories
|
|||
Glob the given relative *pattern* recursively. This is like calling
|
||||
:func:`Path.glob` with "``**/``" added in front of the *pattern*.
|
||||
|
||||
.. note::
|
||||
The paths are returned in no particular order.
|
||||
If you need a specific order, sort the results.
|
||||
|
||||
.. seealso::
|
||||
:ref:`pathlib-pattern-language` and :meth:`Path.glob` documentation.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue