[Python-checkins] peps: PEP 446: change os.dup2()
victor.stinner
python-checkins at python.org
Sun Aug 11 22:57:49 CEST 2013
http://hg.python.org/peps/rev/29fa2a8b4736
changeset: 5053:29fa2a8b4736
user: Victor Stinner <victor.stinner at gmail.com>
date: Sun Aug 11 22:57:36 2013 +0200
summary:
PEP 446: change os.dup2()
files:
pep-0446.txt | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/pep-0446.txt b/pep-0446.txt
--- a/pep-0446.txt
+++ b/pep-0446.txt
@@ -450,8 +450,7 @@
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``.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list