From c1ad018543e03464a82ff298f446fdbdd997d0ae Mon Sep 17 00:00:00 2001 From: barneygale Date: Tue, 7 May 2024 15:12:46 +0100 Subject: [PATCH] [3.12] GH-117701: Note that recursive wildcards aren't supported in `PurePath.match()` --- Doc/library/pathlib.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index d839557993742a..4e54c9167ad804 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -583,6 +583,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.