bpo-39285: Clarify example for PurePath.match#19458
bpo-39285: Clarify example for PurePath.match#19458miss-islington merged 1 commit intopython:masterfrom
Conversation
|
I don't understand this PR. The point of this snippet in the documentation is to show that case-sensitivity follows platform defaults. >>> PurePosixPath('b.py').match('*.PY')
False
>>> PureWindowsPath('b.py').match('*.PY')
True |
|
cc @barneygale |
|
Sounds like a wording problem. This sentence:
Can be taken to mean that
I agree that an additional example involving |
Fixes Issue39285 Provide additional example and update wording to remove ambiguity around the match functionlatiy.
|
Thanks! I've updated the example and wording to incorporate the feedback. |
|
Thanks @timlo for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou (cherry picked from commit c12375a) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
|
GH-19597 is a backport of this pull request to the 3.8 branch. |
Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou (cherry picked from commit c12375a) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
|
GH-19598 is a backport of this pull request to the 3.7 branch. |
Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou (cherry picked from commit c12375a) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
Fixes Issue39285 The example incorrectly returned True for match. Furthermore the example is ambiguous in its usage of PureWindowsPath. Windows is case-insensitve, however the underlying match functionality utilizes fnmatch.fnmatchcase. Automerge-Triggered-By: @pitrou (cherry picked from commit c12375a) Co-authored-by: Tim Lo <timlo@users.noreply.github.com>
Fixes Issue39285
The example incorrectly returned True for match.
Furthermore the example is ambiguous in its usage of PureWindowsPath.
Windows is case-insensitve, however the underlying match functionality
utilizes fnmatch.fnmatchcase.
https://bugs.python.org/issue39285
https://bugs.python.org/issue39285
Automerge-Triggered-By: @pitrou