Message253030
On Windows 8:
>>> fnmatch.fnmatch(r'foo\bar', 'foo/bar')
True
>>> fnmatch.fnmatchcase(r'foo\bar', 'foo/bar')
False
This is due to fnmatch calling os.path.normpath on the arguments (to get the case-sensitivity of the filesystem), which on Windows *also* happens to normalize / to \.
It's probably a bad idea to change the behaviour now, but I think at least this should be clarified in the docs. |
|
Date |
User |
Action |
Args |
2015-10-15 06:04:51 | The Compiler | set | recipients:
+ The Compiler, georg.brandl, paul.moore, tim.golden, ezio.melotti, eric.araujo, zach.ware, steve.dower |
2015-10-15 06:04:51 | The Compiler | set | messageid: <1444889091.12.0.272630391848.issue25409@psf.upfronthosting.co.za> |
2015-10-15 06:04:50 | The Compiler | link | issue25409 messages |
2015-10-15 06:04:50 | The Compiler | create | |
|