PyDocs

Nav

Generic Operating System Services

pipe2

os

function · Added in 3.3UnixmacOS >= 27.0not WASInot iOS
  • pipe2(flags, /)
Create a pipe with flags set atomically.

Returns a tuple of two file descriptors:
  (read_fd, write_fd)

flags can be constructed by ORing together one or more of these values:
O_NONBLOCK, O_CLOEXEC.
0 Examples
No examples for os/pipe2.
See Also
No see-alsos for os/pipe2
0 Notes
No notes for pipe2