skip to navigation
skip to content

textinput 0.1.1

streamlined version of stdlib fileinput

Typical use is:

    import textinput
    for line in textinput.lines():
        process(line)

This iterates over the lines of all files listed in sys.argv[1:],
defaulting to sys.stdin if the list is empty.  If a filename is '-' it
is also replaced by sys.stdin.  To specify an alternative list of
filenames, pass it as the argument to input().  A single file name is
also allowed.
 
File Type Py Version Uploaded on Size # downloads
textinput-0.1.1.tar.gz (md5) Source 2007-07-01 5KB 1407