ID EN
OS

dup

Python 3.11

Return a duplicate of file descriptor fd. The new file descriptor is non-inheritable.

Syntax

PYTHON
os.dup(fd, /)

See Also

non-inheritable inheritable Availability