We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e3e01 commit ec269e1Copy full SHA for ec269e1
1 file changed
Doc/library/pathlib.rst
@@ -1320,10 +1320,6 @@ Reading directories
1320
Glob the given relative *pattern* in the directory represented by this path,
1321
yielding all matching files (of any kind)::
1322
1323
- .. note::
1324
- Akin to :mod:`glob`, the paths are returned in no particular order.
1325
- If you need a specific order, sort them.
1326
-
1327
>>> sorted(Path('.').glob('*.py'))
1328
[PosixPath('pathlib.py'), PosixPath('setup.py'), PosixPath('test_pathlib.py')]
1329
>>> sorted(Path('.').glob('*/*.py'))
@@ -1335,6 +1331,10 @@ Reading directories
1335
1331
PosixPath('setup.py'),
1336
1332
PosixPath('test_pathlib.py')]
1337
1333
1334
+ .. note::
+ Akin to :mod:`glob`, the paths are returned in no particular order.
+ If you need a specific order, sort them.
+
1338
.. seealso::
1339
:ref:`pathlib-pattern-language` documentation.
1340
0 commit comments