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.
glob
pathlib
1 parent 735fc2c commit c897890Copy full SHA for c897890
Doc/library/pathlib.rst
@@ -1682,7 +1682,11 @@ The patterns accepted and results generated by :meth:`Path.glob` and
1682
5. The values returned from pathlib's ``path.glob()`` and ``path.rglob()``
1683
include the *path* as a prefix, unlike the results of
1684
``glob.glob(root_dir=path)``.
1685
-6. ``bytes``-based paths and :ref:`paths relative to directory descriptors
+6. The values returned from pathlib's ``path.glob()`` and ``path.glob()``
1686
+ may include *path* itself, for example when globbing "``**``", whereas the
1687
+ results of ``glob.glob(root_dir=path)`` never include an empty string that
1688
+ would correspond to *path*.
1689
+7. ``bytes``-based paths and :ref:`paths relative to directory descriptors
1690
<dir_fd>` are not supported by pathlib.
1691
1692
0 commit comments