summaryrefslogtreecommitdiff
path: root/Lib/subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixes issue #19929: Call os.read with 32768 within subprocess.PopenGregory P. Smith2013-12-081-1/+1
|\ \ | |/ | | | | | | communicate rather than 4096 for efficiency. A microbenchmark shows Linux and OS X both using ~50% less cpu time this way.
| * Fixes issue #19929: Call os.read with 32768 within subprocess.PopenGregory P. Smith2013-12-081-1/+1
| | | | | | | | | | communicate rather than 4096 for efficiency. A microbenchmark shows Linux and OS X both using ~50% less cpu time this way.
* | Fixes issue #19506: Use a memoryview to avoid a data copy when piping dataGregory P. Smith2013-12-071-2/+5
|\ \ | |/ | | | | to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
| * Fixes issue #19506: Use a memoryview to avoid a data copy when piping dataGregory P. Smith2013-12-071-2/+5
| | | | | | | | to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
* | Fixes issue #15798: subprocess.Popen() no longer fails if fileGregory P. Smith2013-12-011-0/+7
| | | | | | | | descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)
* | Undo supposed fix for Issue #15798 until I understand why this isGregory P. Smith2013-12-011-4/+1
|\ \ | |/ | | | | | | causing test_multiprocessing_forkserver and test_multiprocessing_spawn failures on head (3.4).
| * Undo supposed fix for Issue #15798 until I understand why this isGregory P. Smith2013-12-011-4/+1
| | | | | | | | | | causing test_multiprocessing_forkserver and test_multiprocessing_spawn failures on head (3.4).
* | Fixes Issue #15798 - subprocess.Popen() no longer fails if fileGregory P. Smith2013-11-301-1/+4
|\ \ | |/ | | | | descriptor 0, 1 or 2 is closed.
| * Fixes Issue #15798 - subprocess.Popen() no longer fails if fileGregory P. Smith2013-11-301-1/+4
| | | | | | | | descriptor 0, 1 or 2 is closed.
* | Remove outdated commentTim Golden2013-11-111-1/+0
|\ \ | |/
| * Remove outdated commentTim Golden2013-11-111-1/+0
| |
* | Issue #18923: Update subprocess to use the new selectors module.Charles-François Natali2013-11-081-169/+69
| |
* | Issue #10197 Tweak docs for subprocess.getstatusoutput and align the ↵Tim Golden2013-11-051-11/+15
| | | | | | | | documentation, the module docstring, and the function docstring.
* | Issue #10197 Rework subprocess.get[status]output to use subprocess ↵Tim Golden2013-11-031-15/+9
|\ \ | |/ | | | | functionality and thus to work on Windows. Patch by Nick Coghlan.
| * Issue #10197 Rework subprocess.get[status]output to use subprocess ↵Tim Golden2013-11-031-15/+9
| | | | | | | | functionality and thus to work on Windows. Patch by Nick Coghlan.
* | Close #19284: Handle -R properly in flag helperNick Coghlan2013-10-181-0/+2
| | | | | | | | | | Previously, the -R option would be specified multiple times if PYTHONHASHSEED was set.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-281-5/+4
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | #18705: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | (3.3->default) Cleanup of documentation change from #17860Ronald Oussoren2013-07-071-0/+3
|\ \ | |/ | | | | Reformulated the textual change, and applied it to the docstring as well.
| * Cleanup of documentation change from #17860Ronald Oussoren2013-07-071-0/+3
| | | | | | | | Reformulated the textual change, and applied it to the docstring as well.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Prevent a possible double close of parent pipe fds when the subprocessGregory P. Smith2013-06-151-18/+25
|\ \ | |/ | | | | | | exec runs into an error. Prevent a regular multi-close of the /dev/null fd when any of stdin, stdout and stderr was set to DEVNULL.
| * Prevent a possible double close of parent pipe fds when the subprocessGregory P. Smith2013-06-151-18/+25
| | | | | | | | | | exec runs into an error. Prevent a regular multi-close of the /dev/null fd when any of stdin, stdout and stderr was set to DEVNULL.
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-131-1/+1
| | | | | | | | ModuleNotFoundError.
* | Issue #16624: `subprocess.check_output` now accepts an `input` argument,Serhiy Storchaka2013-04-221-1/+21
| | | | | | | | | | allowing the subprocess's stdin to be provided as a (byte) string. Patch by Zack Weinberg.
* | Fixes issue #17488: Change the subprocess.Popen bufsize parameter default valueGregory P. Smith2013-03-231-9/+9
|\ \ | |/ | | | | | | | | from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.
| * Fixes issue #17488: Change the subprocess.Popen bufsize parameter default valueGregory P. Smith2013-03-231-9/+9
| |\ | | | | | | | | | | | | | | | from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.
| | * Fixes issue #17488: Change the subprocess.Popen bufsize parameter default valueGregory P. Smith2013-03-231-9/+9
| | | | | | | | | | | | | | | | | | from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.
* | | mergeGregory P. Smith2013-03-201-4/+3
|\ \ \ | |/ /
| * | mergeGregory P. Smith2013-03-201-4/+3
| |\ \ | | |/
| | * remove the long obsolete mention of universal newlines mode only beingGregory P. Smith2013-03-201-4/+3
| | | | | | | | | | | | available when configured at compile time.
| | * Issue #16903: Popen.communicate() on Unix now accepts strings whenSerhiy Storchaka2013-02-041-0/+4
| | | | | | | | | | | | universal_newlines is true as on Windows.
* | | Use a larger amount of data for tests such as the interrupted_writeGregory P. Smith2013-03-191-2/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | tests that depend on filling up an OS pipe so that they work properly on systems configured with large pipe buffers. Also a subprocess docstring update that i forgot was in my client when i did the original 3.3 commit... easier to just leave that in here with this one than go back and undo/redo.
| * | Use a larger amount of data for tests such as the interrupted_writeGregory P. Smith2013-03-191-2/+5
| | | | | | | | | | | | | | | tests that depend on filling up an OS pipe so that they work properly on systems configured with large pipe buffers.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
| | |
* | | Keep ref to ECHILD in local scope (#16650)Andrew Svetlov2012-12-241-2/+2
|\ \ \ | |/ /
| * | Keep ref to ECHILD in local scope (#16650)Andrew Svetlov2012-12-241-2/+2
| |\ \ | | |/
| | * Keep ref to ECHILD in local scope (#16650)Andrew Svetlov2012-12-241-2/+2
| | |
* | | Fix #14470. Remove w9xpopen per PEP 11.Brian Curtin2012-12-231-32/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | As stated in PEP 11, 3.4 removes code on Windows platforms where COMSPEC points to command.com. The w9xpopen project in Visual Studio was added to support that case, and there was a special case in subprocess to cover that situation. This change removes the w9xpopen project from the Visual Studio solution and removes any references to the w9xpopen executable.
* | | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-2/+2
| | |
* | | Get rig of EnvironmentError (#16705)Andrew Svetlov2012-12-171-2/+2
| | |
* | | Issue #16704: Get rid of select.error in stdlib. Use OSError instead.Andrew Svetlov2012-12-171-2/+2
| | |
* | | Remove obsolete code: now IOError and WindowsError are aliases for OSErrorAndrew Svetlov2012-12-171-8/+0
| | |
* | | Fixes issue #16140: The subprocess module no longer double closes itsGregory P. Smith2012-11-111-3/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | child subprocess.PIPE parent file descriptors on child error prior to exec(). This would lead to race conditions in multithreaded programs where another thread opened a file reusing the fd which was then closed out from beneath it by the errant second close.
| * | Fixes issue #16140: The subprocess module no longer double closes itsGregory P. Smith2012-11-111-3/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | child subprocess.PIPE parent file descriptors on child error prior to exec(). This would lead to race conditions in multithreaded programs where another thread opened a file reusing the fd which was then closed out from beneath it by the errant second close.
| | * Fixes issue #16140: The subprocess module no longer double closes itsGregory P. Smith2012-11-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | child subprocess.PIPE parent file descriptors on child error prior to exec(). This would lead to race conditions in multithreaded programs where another thread opened a file reusing the fd which was then closed out from beneath it by the errant second close.
* | | Remove the subprocess "bad exception data" warning (formerly a print!)Gregory P. Smith2012-11-111-3/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | all together and just include the repr of the data in the exception itself instead of the useless string "Unknown". This code path is unlikely to even be possible to take given the nature of the pipe it gets subprocess data from.
| * | Remove the subprocess "bad exception data" warning (formerly a print!)Gregory P. Smith2012-11-111-3/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | all together and just include the repr of the data in the exception itself instead of the useless string "Unknown". This code path is unlikely to even be possible to take given the nature of the pipe it gets subprocess data from.
| | * Remove the subprocess "bad exception data" warning (formerly a print!)Gregory P. Smith2012-11-111-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | all together and just include the repr of the data in the exception itself instead of the useless string "Unknown". This code path is unlikely to even be possible to take given the nature of the pipe it gets subprocess data from.