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

Method fileno

Lib/fileinput.py:383–390  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

381 return self._filelineno
382
383 def fileno(self):
384 if self._file:
385 try:
386 return self._file.fileno()
387 except ValueError:
388 return -1
389 else:
390 return -1
391
392 def isfirstline(self):
393 return self._filelineno == 1

Callers 3

test_filenoMethod · 0.95
filenoFunction · 0.45
_readlineMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_filenoMethod · 0.76