Message330992
Both fnmatch.fnmatchase and fnmatch.filter (in Unix) do not support path-like objects.
This is inconvenient, for example, when taking advantage of os.scandir and working with os.DirEntry objets.
Also, fnmatch.filter in Windows does support path-like objects, since it uses os.path.normcase (which works with path-like objects), so the change for Unix would add consistency.
I propose for both functions to accept path-like objects, and in the case of fnmatch.filter, to return the path-like object if it matches the pattern (as it does now for Windows). |
|
Date |
User |
Action |
Args |
2018-12-03 22:43:24 | adelfino | set | recipients:
+ adelfino |
2018-12-03 22:43:24 | adelfino | set | messageid: <1543877004.47.0.788709270274.issue35396@psf.upfronthosting.co.za> |
2018-12-03 22:43:24 | adelfino | link | issue35396 messages |
2018-12-03 22:43:24 | adelfino | create | |
|