From 259a4af3d2699a88702f0ffe12ee9596f634dff5 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 8 Dec 2023 19:26:46 +0100 Subject: [3.12] gh-112758: Updated pathlib documentation for PurePath.match (GH-112814) (#112882) gh-112758: Updated pathlib documentation for PurePath.match (GH-112814) (cherry picked from commit ed8720ace4f73e49f149a1fdd548063ee05f42d5) Co-authored-by: Taylor Packard <3.t.packard@gmail.com> --- Doc/library/pathlib.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 2fb4dc4..d8fa4a2 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -576,6 +576,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') -- cgit v0.12