MCPcopy Index your code
hub / github.com/python/cpython / filelineno

Function filelineno

Lib/fileinput.py:134–142  ·  view source on GitHub ↗

Return the line number in the current file. 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 within the file.

()

Source from the content-addressed store, hash-verified

132 return _state.lineno()
133
134def filelineno():
135 """
136 Return the line number in the current file. Before the first line
137 has been read, returns 0. After the last line of the last file has
138 been read, returns the line number of that line within the file.
139 """
140 if not _state:
141 raise RuntimeError("no active input()")
142 return _state.filelineno()
143
144def fileno():
145 """

Callers 1

_testFunction · 0.85

Calls 1

filelinenoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…