mirror of https://github.com/python/cpython
gh-112758: Updated pathlib documentation for PurePath.match (#112814)
This commit is contained in:
parent
f3bff4ee9d
commit
ed8720ace4
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue