ID EN
OS

set_blocking

Python 3.11

Set the blocking mode of the specified file descriptor. Set the O_NONBLOCK flag if blocking is False, clear the flag otherwise.

Syntax

PYTHON
os.set_blocking(fd, blocking, /)

See Also

O_NONBLOCK get_blocking() socket.socket.setblocking() Availability WebAssembly platforms