diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 43200e269f5..60791725c23 100644 --- a/Doc/library/pathlib.rst +++ b/Doc/library/pathlib.rst @@ -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')