mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
[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 ed8720ace4)
Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
This commit is contained in:
parent
0260c38e80
commit
259a4af3d2
1 changed files with 3 additions and 0 deletions
|
|
@ -576,6 +576,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…
Add table
Add a link
Reference in a new issue