[docs] [issue8402] Add a function to escape metacharacters in glob/fnmatch

Serhiy Storchaka report at bugs.python.org
Mon Mar 11 15:39:07 CET 2013


Serhiy Storchaka added the comment:

Escaping for glob on Windows should not be such trivial. Special characters in the drive part have no special meaning and should not be escaped. I.e. ``escape('//?/c:/Quo vadis?.txt')`` should return ``'//?/c:/Quo vadis[?].txt'``. Perhaps we should move the escape function to the glob module (because it is glob's peculiarity).

Here is a patch for glob.escape().

----------
Added file: http://bugs.python.org/file29380/glob_escape.patch

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


More information about the docs mailing list