Staging
v0.5.1
https://github.com/python/cpython
Revision 7d5b99d8bfa612cbe594d18ac23da1e6207952f4 authored by Guido van Rossum on 21 November 1997, 17:12:59 UTC, committed by Guido van Rossum on 21 November 1997, 17:12:59 UTC
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.
1 parent 2aa78ef
History
Tip revision: 7d5b99d8bfa612cbe594d18ac23da1e6207952f4 authored by Guido van Rossum on 21 November 1997, 17:12:59 UTC
A new standard module, as discussed on comp.lang.python, to simplify
Tip revision: 7d5b99d
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgtags -rw-r--r-- 1000 bytes
Makefile.in -rw-r--r-- 15.8 KB
README -rw-r--r-- 34.4 KB
acconfig.h -rw-r--r-- 2.7 KB
config.h.in -rw-r--r-- 9.9 KB
configure -rwxr-xr-x 111.9 KB
configure.in -rw-r--r-- 17.2 KB
install-sh -rwxr-xr-x 2.1 KB

README

back to top