SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

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.
G
Guido van Rossum committed
7d5b99d8bfa612cbe594d18ac23da1e6207952f4
Parent: 2aa78ef