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

Skip to content

Commit ed8720a

Browse files
authored
gh-112758: Updated pathlib documentation for PurePath.match (#112814)
1 parent f3bff4e commit ed8720a

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