Skip to content

Commit

Permalink
pythongh-112758: Updated pathlib documentation for PurePath.match (py…
Browse files Browse the repository at this point in the history
…thonGH-112814)

(cherry picked from commit ed8720a)

Co-authored-by: Taylor Packard <3.t.packard@gmail.com>
  • Loading branch information
tpackard1 authored and miss-islington committed Dec 8, 2023
1 parent 0260c38 commit 4d1a0c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4d1a0c8

Please sign in to comment.