From ed8720ace4f73e49f149a1fdd548063ee05f42d5 Mon Sep 17 00:00:00 2001 From: Taylor Packard <3.t.packard@gmail.com> Date: Fri, 8 Dec 2023 13:13:17 -0500 Subject: [PATCH] gh-112758: Updated pathlib documentation for PurePath.match (#112814) --- Doc/library/pathlib.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 43200e269f5..60791725c23 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -595,6 +595,9 @@ Pure paths provide the following methods and properties: >>> PurePath('a/b.py').match(pattern) True + .. versionchanged:: 3.12 + Accepts an object implementing the :class:`os.PathLike` interface. + As with other methods, case-sensitivity follows platform defaults:: >>> PurePosixPath('b.py').match('*.PY')