New submission from Varun Agrawal:

Currently, the fnmatch module in Python does not operate like the Unix 
equivalent command. This is especially the case with patterns such as `dir/` 
which does not match directory path returned by `os` (which would be `dir`) and 
neither does the pattern match the underlying files and sub-directories. Adding 
these functionalities so that fnmatch matches it's Unix equivalent would make 
it much more powerful to use.

Glob is not useful since glob is a special case that matches only with the 
current directory paths rather than the a general purpose filename pattern 
matcher.

----------
components: Library (Lib)
messages: 299763
nosy: Varun Agrawal
priority: normal
severity: normal
status: open
title: fnmatch does not follow Unix fnmatch functionality
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31123>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to