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

Method fileno

tools/python-3.11.9-amd64/Lib/_pyio.py:523–528  ·  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

521 # XXX Should these be present even if unimplemented?
522
523 def fileno(self):
524 """Returns underlying file descriptor (an int) if one exists.
525
526 An OSError is raised if the IO object does not use a file descriptor.
527 """
528 self._unsupported("fileno")
529
530 def isatty(self):
531 """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