From: Barney Gale Date: Sat, 11 May 2024 18:10:51 +0000 (+0100) Subject: [3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match... X-Git-Tag: v3.12.4~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0786bcb748ac64a051f6c74f298b8b91852ee4f;p=thirdparty%2FPython%2Fcpython.git [3.12] GH-118701: Note that recursive wildcards aren't supported in `PurePath.match()` (#118713) --- diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 65dd509fa100..a44c52db5663 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.