ID EN
OS

pipe2

Python 3.11

Create a pipe with flags set atomically. flags can be constructed by ORing together one or more of these values: O_NONBLOCK, O_CLOEXEC. Return a pair of file descriptors (r, w) usable for reading and writing, respectively.

Syntax

PYTHON
os.pipe2(flags, /)

See Also

O_NONBLOCK O_CLOEXEC Availability