PyDocs

Nav

Command-line interface libraries

lineno

fileinput

function (source)
  • lineno()
Return the cumulative line number of the line that has just been read.
Before the first line has been read, returns 0. After the last line
of the last file has been read, returns the line number of that line.
0 Examples
No examples for fileinput/lineno.
See Also
No see-alsos for fileinput/lineno
0 Notes
No notes for lineno