diff options
author | Guido van Rossum <guido@python.org> | 1997-11-21 17:12:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-11-21 17:12:59 (GMT) |
commit | 7d5b99d8bfa612cbe594d18ac23da1e6207952f4 (patch) | |
tree | 8d2bc7f86a2c0279205b08439402009b1c6e76f6 /Lib/fnmatch.py | |
parent | 2aa78efab10e7a26945e0d73b38b4080ccbe3a7d (diff) | |
download | cpython-7d5b99d8bfa612cbe594d18ac23da1e6207952f4.zip cpython-7d5b99d8bfa612cbe594d18ac23da1e6207952f4.tar.gz cpython-7d5b99d8bfa612cbe594d18ac23da1e6207952f4.tar.bz2 |
A new standard module, as discussed on comp.lang.python, to simplify
the writing of filters.
Typical use is:
import fileinput
for line in fileinput.input():
process(line)
This iterates over the lines of all files listed in sys.argv[1:],
defaulting to sys.stdin if the list is empty or when a filename is
'-'.
There is also an option to use this to direct the output back to the
input files.
Diffstat (limited to 'Lib/fnmatch.py')
0 files changed, 0 insertions, 0 deletions