summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-05-11 18:10:51 (GMT)
committerGitHub <noreply@github.com>2024-05-11 18:10:51 (GMT)
commita0786bcb748ac64a051f6c74f298b8b91852ee4f (patch)
tree6031bd2459ddf310e24b5ac59902de7d5e1c2392 /Doc/library
parentaf8db2b6817e1ae25cbee98e67d1f4bac9d6af9c (diff)
downloadcpython-a0786bcb748ac64a051f6c74f298b8b91852ee4f.zip
cpython-a0786bcb748ac64a051f6c74f298b8b91852ee4f.tar.gz
cpython-a0786bcb748ac64a051f6c74f298b8b91852ee4f.tar.bz2
[3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match()` (#118713)
Diffstat (limited to 'Doc/library')
-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 65dd509..a44c52d 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.