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

Method fileno

Lib/_pyio.py:492–497  ·  view source on GitHub ↗

Returns underlying file descriptor (an int) if one exists. An OSError is raised if the IO object does not use a file descriptor.

(self)

Source from the content-addressed store, hash-verified

490 # XXX Should these be present even if unimplemented?
491
492 def fileno(self):
493 """Returns underlying file descriptor (an int) if one exists.
494
495 An OSError is raised if the IO object does not use a file descriptor.
496 """
497 self._unsupported("fileno")
498
499 def isatty(self):
500 """Return a bool indicating whether this is an 'interactive' stream.

Callers 2

filenoMethod · 0.45
filenoMethod · 0.45

Calls 1

_unsupportedMethod · 0.95

Tested by

no test coverage detected