aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-05-11 19:10:51 +0100
committerGitHub <noreply@github.com>2024-05-11 19:10:51 +0100
commita0786bcb748ac64a051f6c74f298b8b91852ee4f (patch)
tree6031bd2459ddf310e24b5ac59902de7d5e1c2392
parentaf8db2b6817e1ae25cbee98e67d1f4bac9d6af9c (diff)
downloadcpython3-a0786bcb748ac64a051f6c74f298b8b91852ee4f.tar.gz
[3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match()` (#118713)
-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 65dd509fa1..a44c52db56 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -582,6 +582,10 @@ Pure paths provide the following methods and properties:
>>> PurePath('a/b.py').match(pattern)
True
+ .. note::
+ The recursive wildcard "``**``" isn't supported by this method (it acts
+ like non-recursive "``*``".)
+
.. versionchanged:: 3.12
Accepts an object implementing the :class:`os.PathLike` interface.