Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ isfirstline
Method
isfirstline
Lib/fileinput.py:392–393 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
390
return
-1
391
392
def
isfirstline(self):
393
return
self._filelineno == 1
394
395
def
isstdin(self):
396
return
self._isstdin
Callers
2
test_buffer_sizes
Method · 0.95
isfirstline
Function · 0.45
Calls
no outgoing calls
Tested by
1
test_buffer_sizes
Method · 0.76