Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

peps: PEP 446: change os.dup2()

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Aug 11, 2013, 1:57 PM

Post #1 of 1 (7 views)
Permalink
peps: PEP 446: change os.dup2()

http://hg.python.org/peps/rev/29fa2a8b4736
changeset: 5053:29fa2a8b4736
user: Victor Stinner <victor.stinner [at] gmail>
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

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.