Home
/
Python 3.11
/
OS
/
dup
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
OS
dup
Python 3.11
Return a duplicate of file descriptor fd. The new file descriptor is non-inheritable.
Syntax
PYTHON
Copy
os.dup(fd, /)
See Also
non-inheritable
inheritable
Availability