PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Generic Operating System Services
ctypes
ctypes.wintypes
errno
io
logging
logging.config
logging.handlers
os
platform
time
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Generic Operating System Services
ctypes
wintypes
errno
io
logging
config
handlers
os
platform
time
All modules
dup2
os
function
not WASI
dup2(fd, fd2, inheritable=True)
Duplicate file descriptor.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
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.
Log in
to add an example
See Also
No see-alsos for
os/dup2
Log in
to add a see-also
0 Notes
No notes for
dup2
Log in
to add a note