diff options
author | Taylor Packard <3.t.packard@gmail.com> | 2023-12-08 18:13:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 18:13:17 (GMT) |
commit | ed8720ace4f73e49f149a1fdd548063ee05f42d5 (patch) | |
tree | bd24c58b9bf99be4fe94c73f5764851ee1542531 | |
parent | f3bff4ee9d3e4276949e5cde81180195b95bacb9 (diff) | |
download | cpython-ed8720ace4f73e49f149a1fdd548063ee05f42d5.zip cpython-ed8720ace4f73e49f149a1fdd548063ee05f42d5.tar.gz cpython-ed8720ace4f73e49f149a1fdd548063ee05f42d5.tar.bz2 |
gh-112758: Updated pathlib documentation for PurePath.match (#112814)
-rw-r--r-- | Doc/library/pathlib.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst index 43200e2..6079172 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') |