Lines Matching defs:input
1 """Helper class to quickly write a loop over all standard input files.
6 for line in fileinput.input(encoding="utf-8"):
13 pass it as the argument to input(). A single file name is also allowed.
32 setting the mode parameter to input() or FileInput.__init__().
51 readline() method which returns the next input line, and a
57 passed to input() or to the FileInput constructor, the file is moved
58 to a backup file and standard output is directed to the input file.
59 This makes it possible to write a filter that rewrites its input file
64 disabled when standard input is read. XXX The current implementation
72 __all__ = ["input", "close", "nextfile", "filename", "lineno", "filelineno",
78 def input(files=None, inplace=False, backup="", *, mode="r", openhook=None,
88 raise RuntimeError("input() already active")
112 raise RuntimeError("no active input()")
121 raise RuntimeError("no active input()")
131 raise RuntimeError("no active input()")
141 raise RuntimeError("no active input()")
150 raise RuntimeError("no active input()")
159 raise RuntimeError("no active input()")
168 raise RuntimeError("no active input()")
179 input line, and a __getitem__() method which implements the
434 for line in input(args, inplace=inplace, backup=backup):