]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-112758: Updated pathlib documentation for PurePath.match (GH-112814) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 8 Dec 2023 18:26:46 +0000 (19:26 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 18:26:46 +0000 (18:26 +0000)
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

index 2fb4dc42f46feb76c587ff1b4f910c185760fb81..d8fa4a27a28a0bf6d3dda54c9c55f35cc4e43189 100644 (file)
@@ -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')