8000 gh-112758: Updated pathlib documentation for PurePath.match by tpackard1 · Pull Request #112814 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 8, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expan 6948 d Up @@ -595,6 +595,9 @@ Pure paths provide the following methods and properties:
>>> PurePath('a/b.py').match(pattern)
True

.. versionchanged:: 3.12
Accepts another path object.

As with other methods, case-sensitivity follows platform defaults::

>>> PurePosixPath('b.py').match('*.PY')
Expand Down
0