]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-112758: Updated pathlib documentation for PurePath.match (#112814)
authorTaylor Packard <3.t.packard@gmail.com>
Fri, 8 Dec 2023 18:13:17 +0000 (13:13 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 18:13:17 +0000 (18:13 +0000)
Doc/library/pathlib.rst

index 43200e269f56f4d05e249bb65388e17f3d827fa7..60791725c2323ddca648fb3f31f1091af42bcfaf 100644 (file)
@@ -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')