ID EN
IO

fileno

Python 3.11

Return the underlying file descriptor (an integer) of the stream if it exists. An OSError is raised if the IO object does not use a file descriptor.

Syntax

PYTHON
fileno()

See Also

OSError