diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-17 15:38:11 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-17 15:38:11 (GMT) |
commit | a39a22dc0b20f0373792322b054228f1f62b736a (patch) | |
tree | fc903072f5fb959b0da2c98f4275f13e65fd448b /Doc/library/glob.rst | |
parent | 52e855084dc21fc2ea9a8a4a8c9c0beab6a855c3 (diff) | |
download | cpython-a39a22dc0b20f0373792322b054228f1f62b736a.zip cpython-a39a22dc0b20f0373792322b054228f1f62b736a.tar.gz cpython-a39a22dc0b20f0373792322b054228f1f62b736a.tar.bz2 |
#16420: document a way to escape metacharacters in glob/fnmatch.
Diffstat (limited to 'Doc/library/glob.rst')
-rw-r--r-- | Doc/library/glob.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/glob.rst b/Doc/library/glob.rst index 3d31c11..2584361 100644 --- a/Doc/library/glob.rst +++ b/Doc/library/glob.rst @@ -19,6 +19,9 @@ matched. This is done by using the :func:`os.listdir` and subshell. (For tilde and shell variable expansion, use :func:`os.path.expanduser` and :func:`os.path.expandvars`.) +For a literal match, wrap the meta-characters in brackets. +For example, ``'[?]'`` matches the character ``'?'``. + .. function:: glob(pathname) |