<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/fileinput.py, branch v1.5</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/fileinput.py?h=v1.5</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/fileinput.py?h=v1.5'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>1997-11-21T17:12:59Z</updated>
<entry>
<title>A new standard module, as discussed on comp.lang.python, to simplify</title>
<updated>1997-11-21T17:12:59Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-11-21T17:12:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7d5b99d8bfa612cbe594d18ac23da1e6207952f4'/>
<id>urn:sha1:7d5b99d8bfa612cbe594d18ac23da1e6207952f4</id>
<content type='text'>
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.
</content>
</entry>
</feed>
