[issue8402] glob returns empty list with "[" character in the folder name

Eric Smith report at bugs.python.org
Wed May 26 19:33:01 CEST 2010


Eric Smith <eric at trueblade.com> added the comment:

I don't think so. That quote came from the docstring for fnmatch.translate.

>>> help(fnmatch.translate)
Help on function translate in module fnmatch:

translate(pat)
    Translate a shell PATTERN to a regular expression.
    
    There is no way to quote meta-characters.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8402>
_______________________________________


More information about the Python-bugs-list mailing list