Module fileinput :: Class FileInput
[hide private]
[frames] | no frames]

_ClassType FileInput

class FileInput([files[, inplace[, backup[, mode[, openhook]]]]])

Class FileInput is the implementation of the module; its methods filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(), nextfile() and close() correspond to the functions of the same name in the module. In addition it has a readline() method which returns the next input line, and a __getitem__() method which implements the sequence behavior. The sequence must be accessed in strictly sequential order; random access and readline() cannot be mixed.

Instance Methods [hide private]
 
__init__(self, files=None, inplace=0, backup='', bufsize=0, mode='r', openhook=None)
 
__del__(self)
 
close(self)
 
__iter__(self)
 
next(self)
 
__getitem__(self, i)
 
nextfile(self)
 
readline(self)
 
filename(self)
 
lineno(self)
 
filelineno(self)
 
fileno(self)
 
isfirstline(self)
 
isstdin(self)