4 ms·
If you're writing a filter, you probably want to use fileinput, which does most of the stuff you'd want in a "read lines from a bunch of files and do something"
by bcoates 13y ago
If you're writing a filter, you probably want to use fileinput, which does most of the stuff you'd want in a "read lines from a bunch of files and do something" text-processing program.
http://docs.python.org/2/library/fileinput.html http://docs.python.org/2/library/fileinput.html