8000 gh-112758: Updated pathlib documentation for PurePath.match (#112814) · aisk/cpython@6ee56c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ee56c3

Browse files
tpackard1aisk
authored andcommitted
pythongh-112758: Updated pathlib documentation for PurePath.match (python#112814)
1 parent 9efe582 commit 6ee56c3

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
@@ -595,6 +595,9 @@ Pure paths provide the following methods and properties:
595595
>>> PurePath('a/b.py').match(pattern)
596596
True
597597

598+
.. versionchanged:: 3.12
599+
Accepts an object implementing the :class:`os.PathLike` interface.
600+
598601
As with other methods, case-sensitivity follows platform defaults::
599602

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

0 commit comments

Comments
 (0)
0