Skip to content

Commit 72a8105

Browse files
committed
Clarify example for PurePath.match
Fixes Issue39285 Provide additional example and update wording to remove ambiguity around the match functionlatiy.
1 parent 799d7d6 commit 72a8105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/pathlib.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,10 @@ Pure paths provide the following methods and properties:
528528
>>> PurePath('a/b.py').match('/*.py')
529529
False
530530

531-
As with other methods, case-sensitivity is observed::
531+
As with other methods, case-sensitivity follows platform defaults::
532532

533+
>>> PurePosixPath('b.py').match('*.PY')
534+
False
533535
>>> PureWindowsPath('b.py').match('*.PY')
534536
True
535537

0 commit comments

Comments
 (0)