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

Function isfirstline

Lib/fileinput.py:153–160  ·  view source on GitHub ↗

Returns true the line just read is the first line of its file, otherwise returns false.

()

Source from the content-addressed store, hash-verified

151 return _state.fileno()
152
153def isfirstline():
154 """
155 Returns true the line just read is the first line of its file,
156 otherwise returns false.
157 """
158 if not _state:
159 raise RuntimeError("no active input()")
160 return _state.isfirstline()
161
162def isstdin():
163 """

Callers 1

_testFunction · 0.85

Calls 1

isfirstlineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…