From: Taylor Packard <3.t.packard@gmail.com> Date: Fri, 8 Dec 2023 18:13:17 +0000 (-0500) Subject: gh-112758: Updated pathlib documentation for PurePath.match (#112814) X-Git-Tag: v3.13.0a3~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed8720ace4f73e49f149a1fdd548063ee05f42d5;p=thirdparty%2FPython%2Fcpython.git gh-112758: Updated pathlib documentation for PurePath.match (#112814) --- diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 43200e269f56..60791725c232 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')