This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients docs@python, pitrou, serhiy.storchaka, xtreak
Date 2020-01-10.10:06:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578650816.04.0.399157633818.issue39285@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match

Under PurePath.match there is a statement that case-sensitivity is followed but presents an example in Windows where case insensitive match returns True. This is confusing since match internally uses fnmatch.fnmatchcase that doesn't normalize case but in Windows files are case insensitive. Either the doc could be clarified that it's platform dependent or present a PosixPath example or present two examples with one for Linux and one for Windows that it's platform dependent.

As with other methods, case-sensitivity is observed:

>>> PureWindowsPath('b.py').match('*.PY')
True
History
Date User Action Args
2020-01-10 10:06:56xtreaksetrecipients: + xtreak, pitrou, docs@python, serhiy.storchaka
2020-01-10 10:06:56xtreaksetmessageid: <1578650816.04.0.399157633818.issue39285@roundup.psfhosted.org>
2020-01-10 10:06:55xtreaklinkissue39285 messages
2020-01-10 10:06:54xtreakcreate