Message359717
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 |
|
Date |
User |
Action |
Args |
2020-01-10 10:06:56 | xtreak | set | recipients:
+ xtreak, pitrou, docs@python, serhiy.storchaka |
2020-01-10 10:06:56 | xtreak | set | messageid: <1578650816.04.0.399157633818.issue39285@roundup.psfhosted.org> |
2020-01-10 10:06:55 | xtreak | link | issue39285 messages |
2020-01-10 10:06:54 | xtreak | create | |
|