Home | History | Annotate | Download | only in python2.7

Lines Matching full:line

6     for line in fileinput.input():
7 process(line)
15 Functions filename(), lineno() return the filename and cumulative line
16 number of the line that has just been read; filelineno() returns its
17 line number in the current file; isfirstline() returns true iff the
18 line just read is the first line of its file; isstdin() returns true
19 iff the line was read from sys.stdin. Function nextfile() closes the
20 current file so that the next iteration will read the first line from
22 towards the cumulative line count; the filename is not changed until
23 after the first line of the next file has been read. Function close()
26 Before any lines have been read, filename() returns None and both line
28 read, filename() and the line number functions return the values
29 pertaining to the last line read; nextfile() has no effect.
44 It is possible that the last line of a file doesn't end in a newline
51 readline() method which returns the next input line, and a
117 line from the next file (if any); lines not read from the file will
118 not count towards the cumulative line count. The filename is not
119 changed until after the first line of the next file has been read.
120 Before the first line has been read, this function has no effect;
121 it cannot be used to skip the first file. After the last line of the
131 Before the first line has been read, returns None.
139 Return the cumulative line number of the line that has just been read.
140 Before the first line has been read, returns 0. After the last line
141 of the last file has been read, returns the line number of that line.
149 Return the line number in the current file. Before the first line
150 has been read, returns 0. After the last line of the last file has
151 been read, returns the line number of that line within the file.
168 Returns true the line just read is the first line of its file,
177 Returns true if the last line was read from sys.stdin,
192 input line, and a __getitem__() method which implements the
245 line = self._buffer[self._bufindex]
252 return line
253 line = self.readline()
254 if not line:
256 return line
294 line = self._buffer[self._bufindex]
301 return line
405 for line in input(args, inplace=inplace, backup=backup):
406 if line[-1:] == '\n': line = line[:-1]
407 if line[-1:] == '\r': line = line[:-1]
409 isfirstline() and "*" or "", line)