gh-112758: Updated pathlib documentation for PurePath.match (#112814)

This commit is contained in:
Taylor Packard 2023-12-08 13:13:17 -05:00 committed by GitHub
parent f3bff4ee9d
commit ed8720ace4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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')