os.dup()

os.dup(fd)

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

On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: stderr), the new file descriptor is inheritable.

Changed in version 3.4: The new file descriptor is now non-inheritable.

doc_python
2016-10-07 17:38:49
Comments
Leave a Comment

Please login to continue.