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 The Compiler
Recipients The Compiler, eric.araujo, ezio.melotti, georg.brandl, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-10-15.06:04:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444889091.12.0.272630391848.issue25409@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-10-15 06:04:51The Compilersetrecipients: + The Compiler, georg.brandl, paul.moore, tim.golden, ezio.melotti, eric.araujo, zach.ware, steve.dower
2015-10-15 06:04:51The Compilersetmessageid: <1444889091.12.0.272630391848.issue25409@psf.upfronthosting.co.za>
2015-10-15 06:04:50The Compilerlinkissue25409 messages
2015-10-15 06:04:50The Compilercreate