From 8dbcf87357cba486504cd0abe368108d2831080c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 11 Aug 2013 22:57:36 +0200 Subject: [PATCH] PEP 446: change os.dup2() --- pep-0446.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pep-0446.txt b/pep-0446.txt index 4f6270fe0..12d8c1931 100644 --- a/pep-0446.txt +++ b/pep-0446.txt @@ -450,8 +450,7 @@ Other Changes flag of file descriptors is unchanged in the parent process. * ``os.dup2(fd, fd2)`` makes *fd2* inheritable if *fd2* is ``0`` - (stdin), ``1`` (stdout) or ``2`` (stderr) and *fd2* is different than - *fd*. + (stdin), ``1`` (stdout) or ``2`` (stderr). Since Python should only create non-inheritable file descriptors, it is safe to use subprocess with the *close_fds* parameter set to ``False``.