Message300658
Python 2.7 doesn't seem to be affected by this issue. Extract of Popen.__init__:
try:
self._execute_child(args, executable, preexec_fn, close_fds,
cwd, env, universal_newlines,
startupinfo, creationflags, shell, to_close,
p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite)
except Exception:
# Preserve original exception in case os.close raises.
exc_type, exc_value, exc_trace = sys.exc_info()
for fd in to_close:
try:
if mswindows:
fd.Close()
else:
os.close(fd)
except EnvironmentError:
pass
On Windows, fd.Close() is always used. |
|
Date |
User |
Action |
Args |
2017-08-21 22:24:54 | vstinner | set | recipients:
+ vstinner, terry.reedy, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, Segev Finer |
2017-08-21 22:24:54 | vstinner | set | messageid: <1503354294.06.0.000790666195616.issue30121@psf.upfronthosting.co.za> |
2017-08-21 22:24:54 | vstinner | link | issue30121 messages |
2017-08-21 22:24:53 | vstinner | create | |
|