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

Eric Smith report at bugs.python.org
Thu Apr 15 03:27:57 CEST 2010


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

The documentation for fnmatch.translate, which is what ultimately gets called, says:
   There is no way to quote meta-characters.
Sorry.

If you want to see this changed, you could open a feature request. If you have a patch, that would help!

You probably want to research what the Unix shells use for escaping globs.

----------
status: open -> pending

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


More information about the Python-bugs-list mailing list