This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Segev Finer, eryksun, paul.moore, steve.dower, terry.reedy, tim.golden, vstinner, zach.ware
Date 2017-08-21.22:24:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503354294.06.0.000790666195616.issue30121@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-08-21 22:24:54vstinnersetrecipients: + vstinner, terry.reedy, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, Segev Finer
2017-08-21 22:24:54vstinnersetmessageid: <1503354294.06.0.000790666195616.issue30121@psf.upfronthosting.co.za>
2017-08-21 22:24:54vstinnerlinkissue30121 messages
2017-08-21 22:24:53vstinnercreate