Lines Matching +full:is +full:- +full:glob
1 :mod:`glob` --- Unix style pathname pattern expansion
4 .. module:: glob
10 **Source code:** :source:`Lib/glob.py`
12 --------------
14 The :mod:`glob` module finds all the pathnames matching a specified pattern
16 arbitrary order. No tilde expansion is done, but ``*``, ``?``, and character
17 ranges expressed with ``[]`` will be correctly matched. This is done by using
20 :mod:`glob` treats filenames beginning with a dot (``.``) as special cases.
24 For a literal match, wrap the meta-characters in brackets.
28 .. function:: glob(pathname)
30 Return a possibly-empty list of path names that match *pathname*, which must be
32 (like :file:`/usr/src/Python-1.5/Makefile`) or relative (like
33 :file:`../../Tools/\*/\*.gif`), and can contain shell-style wildcards. Broken
39 Return an :term:`iterator` which yields the same values as :func:`glob`
45 :file:`1.gif`, :file:`2.txt`, and :file:`card.gif`. :func:`glob` will produce
49 >>> import glob
50 >>> glob.glob('./[0-9].*')
52 >>> glob.glob('*.gif')
54 >>> glob.glob('?.gif')
61 >>> import glob
62 >>> glob.glob('*.gif')
64 >>> glob.glob('.c*')
70 Shell-style filename (not path) expansion