summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/pathlib.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 3ff2631..4fba362 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -1682,6 +1682,10 @@ The patterns accepted and results generated by :meth:`Path.glob` and
5. The values returned from pathlib's ``path.glob()`` and ``path.rglob()``
include the *path* as a prefix, unlike the results of
``glob.glob(root_dir=path)``.
+6. The values returned from pathlib's ``path.glob()`` and ``path.rglob()``
+ may include *path* itself, for example when globbing "``**``", whereas the
+ results of ``glob.glob(root_dir=path)`` never include an empty string that
+ would correspond to *path*.
Comparison to the :mod:`os` and :mod:`os.path` modules