https://github.com/python/cpython/commit/a0786bcb748ac64a051f6c74f298b8b91852ee4f
commit: a0786bcb748ac64a051f6c74f298b8b91852ee4f
branch: 3.12
author: Barney Gale <[email protected]>
committer: barneygale <[email protected]>
date: 2024-05-11T19:10:51+01:00
summary:

[3.12] GH-118701: Note that recursive wildcards aren't supported in 
`PurePath.match()` (#118713)

files:
M Doc/library/pathlib.rst

diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index 65dd509fa100d8..a44c52db5663d4 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.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to