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
  • Loading branch information
tpackard1 authored Dec 8, 2023
1 parent f3bff4e commit ed8720a
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 @@ -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')
Expand Down

0 comments on commit ed8720a

Please sign in to comment.