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

Function fileno

Lib/fileinput.py:144–151  ·  view source on GitHub ↗

Return the file number of the current file. When no file is currently opened, returns -1.

()

Source from the content-addressed store, hash-verified

142 return _state.filelineno()
143
144def fileno():
145 """
146 Return the file number of the current file. When no file is currently
147 opened, returns -1.
148 """
149 if not _state:
150 raise RuntimeError("no active input()")
151 return _state.fileno()
152
153def isfirstline():
154 """

Callers 1

waitFunction · 0.85

Calls 1

filenoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…