Skip to content

Commit 259a4af

Browse files
[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 ed8720a) Co-authored-by: Taylor Packard <[email protected]>
1 parent 0260c38 commit 259a4af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/pathlib.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,9 @@ Pure paths provide the following methods and properties:
576576
>>> PurePath('a/b.py').match(pattern)
577577
True
578578

579+
.. versionchanged:: 3.12
580+
Accepts an object implementing the :class:`os.PathLike` interface.
581+
579582
As with other methods, case-sensitivity follows platform defaults::
580583

581584
>>> PurePosixPath('b.py').match('*.PY')

0 commit comments

Comments
 (0)