[issue35757] slow subprocess.Popen(..., close_fds=True)

2019-01-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yeah, this is WONTFIX particularly since you can have the Python3 implementation in Python 2 easily with https://pypi.org/project/subprocess32/. -- nosy: +benjamin.peterson resolution: -> wont fix stage: -> resolved status: open -> closed

[issue35757] slow subprocess.Popen(..., close_fds=True)

2019-01-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Others can correct me if I'm wrong, but I'm fairly sure 2.7 isn't making changes unless they fix critical or security-related bugs. The code here is suboptimal, but it's already been fixed in Python 3 (in #8052), as part of a C accelerator module (that

[issue35757] slow subprocess.Popen(..., close_fds=True)

2019-01-16 Thread Kirill Kolyshkin
New submission from Kirill Kolyshkin : In case close_fds=True is passed to subprocess.Popen() or its users (subprocess.call() etc), it might spend some considerable time closing non-opened file descriptors, as demonstrated by the following snippet from strace: close(3)=