PyDocs

Nav

Generic Operating System Services

dup2

os

functionnot WASI
  • dup2(fd, fd2, inheritable=True)
Duplicate file descriptor.
Changed in 3.4, 3.7
  • 3.4: Add the optional inheritable parameter.
  • 3.7: Return fd2 on success. Previously, None was always returned.
0 Examples
No examples for os/dup2.
See Also
No see-alsos for os/dup2
0 Notes
No notes for dup2