MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / fileno

Method fileno

tools/python-3.11.9-amd64/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 2

filenoFunction · 0.45
_readlineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected