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 wolma
Recipients serhiy.storchaka, steven.daprano, wolma
Date 2017-05-22.08:41:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495442497.01.0.279987159196.issue30413@psf.upfronthosting.co.za>
In-reply-to
Content
Yet another thing I just realized (sorry for being so annoying):

With os.normcase calling os.fspath in 3.6+ it is not really a NOP anymore even on posix. As a consequence, you can now do some weird things with fnmatch: in all cases, and only in these, where the module *does* call normcase you can pass in Path-like objects as the names.
This works with fnmatch.fnmatch on all platforms, never for fnmatchcase, and platform-dependently (on Windows, but not on posix platforms) for filter/filterfalse.
It's mostly that last case that worries me because it makes it easy to accidentally write code that is not platform-independent.

Also note that you can also pass a Path-like object as pat everywhere except in fnmatchcase.
History
Date User Action Args
2017-05-22 08:41:37wolmasetrecipients: + wolma, steven.daprano, serhiy.storchaka
2017-05-22 08:41:37wolmasetmessageid: <1495442497.01.0.279987159196.issue30413@psf.upfronthosting.co.za>
2017-05-22 08:41:36wolmalinkissue30413 messages
2017-05-22 08:41:36wolmacreate