summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
Commit message (Collapse)AuthorAgeFilesLines
* Doc: add missing capture_output arg to subprocess.run() signature (#8374)Andriy Maletsky2018-08-091-2/+2
|
* versionadded -> versionchanged for all 'X parameter was added' for ↵Sergey Fedoseev2018-07-061-1/+1
| | | | | | uniformity. (GH8114) Per the recommendation in our Developer's Guide: https://devguide.python.org/documenting/#paragraph-level-markup
* bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)Tobias Kunze2018-06-051-1/+6
|
* Clarify fd inheritance when close_fds=False. (GH-6240)Gregory P. Smith2018-03-251-1/+4
| | | Clarify the subprocess documentation.
* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (#5912)Serhiy Storchaka2018-02-271-10/+6
| | | | | | * Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.
* bpo-32815: Improve docs on the subprocess API *text* parameter (GH-5622)Pablo Galindo2018-02-111-8/+15
| | | Describe *text* as an alias for *universal_newlines* in more places that people are likely to be referred to.
* bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 (GH-5564)Brice Gros2018-02-071-0/+3
| | | Fixes the documentation for `subprocess.check_output()` not mentioning that the encoding and errors parameters were added in 3.6.
* bpo-31961: subprocess now accepts path-like args (GH-4329)Anders Lorentsen2018-01-301-6/+10
| | | Allow os.PathLike args in subprocess APIs.
* bpo-32102 Add "capture_output=True" to subprocess.run (GH-5149)Bo Bayles2018-01-301-8/+11
| | | | Add "capture_output=True" option to subprocess.run, this is equivalent to setting stdout=PIPE, stderr=PIPE but is much more readable.
* bpo-19764: Implemented support for subprocess.Popen(close_fds=True) on ↵Segev Finer2017-12-181-6/+36
| | | | | | | | | | | | | | | | | Windows (#1218) Even though Python marks any handles it opens as non-inheritable there is still a race when using `subprocess.Popen` since creating a process with redirected stdio requires temporarily creating inheritable handles. By implementing support for `subprocess.Popen(close_fds=True)` we fix this race. In order to implement this we use PROC_THREAD_ATTRIBUTE_HANDLE_LIST which is available since Windows Vista. Which allows to pass an explicit list of handles to inherit when creating a process. This commit also adds `STARTUPINFO.lpAttributeList["handle_list"]` which can be used to control PROC_THREAD_ATTRIBUTE_HANDLE_LIST directly.
* bpo-31884 subprocess: add Windows constants for process priority (#4150)James2017-11-081-4/+94
|
* bpo-31756: subprocess.run should alias universal_newlines to text (#4049)andyclegg2017-10-231-7/+12
| | | | | | | | | Improve human friendliness of the Popen API: Add text=False as a keyword-only argument to subprocess.Popen along with a Popen attribute .text_mode and set this based on the encoding/errors/universal_newlines/text arguments. The universal_newlines parameter and attribute are maintained for backwards compatibility.
* bpo-22635: subprocess.getstatusoutput doc update. (#3398)Gregory P. Smith2017-09-071-7/+12
| | | | | The `subprocess.getstatusoutput` API was inadvertently changed in Python 3.3.4. Document the change, it is too late to undo the API change now as it has shipped in many stable releases.
* bpo-31065: Add doc about Popen.poll returning None. (#3169)Ivan Chernoff2017-08-291-1/+1
|
* bpo-30420: List cwd parameter in subprocess convenience APIs (GH-1685)Alex Gaynor2017-05-261-4/+4
| | | | | | | | | | Partially clarify the subprocess convenience API documentation by explicitly listing the `cwd` parameter in their abbreviated signatures. While this has been merged as an improvement, it doesn't fully resolve the issue, as the `cwd` should also be covered in the "Frequently Used Arguments" section, and the fact these APIs pass unlisted keyword arguments down to the lower level APIs is currently still unclear.
* Tweak subprocess.STARTUPINFO documentation (#347)Berker Peksag2017-03-011-5/+7
| | | | * Document STARTUPINFO constructor * Move versionchanged directive to above of attributes
* bpo-28624: Add a test that checks that cwd parameter of Popen() accepts ↵Sayan Chowdhury2017-02-261-3/+7
| | | | PathLike objects (#157)
* bpo-26128: Added __init__to subprocess.STARTUPINFO (#171)Subhendu Ghosh2017-02-251-1/+4
| | | | | | | The Windows-specific subprocess.STARTUPINFO class now accepts keyword-only arguments to its constructor to set the various data attributes. Patch by Subhendu Ghosh.
* issue 20572: remove the deprecation notice for the deleted endtime parameter.Gregory P. Smith2016-11-211-6/+0
|
* Issue #19795: Improved more markups of True/False.Serhiy Storchaka2016-10-191-4/+4
|\
| * Issue #19795: Improved more markups of True/False.Serhiy Storchaka2016-10-191-1/+1
| |
* | Issue #19795: Mark up True and False as literal text instead of bold.Serhiy Storchaka2016-10-191-2/+2
|\ \ | |/
| * Issue #19795: Mark up True and False as literal text instead of bold.Serhiy Storchaka2016-10-191-2/+2
| |
* | Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-3/+3
|\ \ | |/
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-3/+3
| |
* | Issue #6135: Adds encoding and errors parameters to subprocessSteve Dower2016-09-071-40/+63
| |
* | Issue #26462: Merge code block fixes from 3.5Martin Panter2016-07-291-7/+14
|\ \ | |/
| * Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.Martin Panter2016-07-261-7/+14
| | | | | | | | Patch by Julien Palard.
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+4
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+4
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | merge 3.5Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-031-1/+2
|\ \ | |/
| * Document that CalledProcessError.returncode is the negativeGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-031-1/+2
| | | | | | | | signal number when the process died due to a signal.
* | subprocess now emits a ResourceWarning warningVictor Stinner2016-05-201-0/+4
|/ | | | | Issue #26741: subprocess.Popen destructor now emits a ResourceWarning warning if the child process is still running.
* Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵Georg Brandl2016-02-261-4/+4
| | | | to SilentGhost for the patch.
* Merge: #24998: fix cut and paste error in subprocess example.R David Murray2015-09-041-1/+1
|\
| * #24998: fix cut and paste error in subprocess example.R David Murray2015-09-041-1/+1
| |
* | Issue #24420: Fix documentation regression introduced by f0a00ee094ff.Berker Peksag2015-07-251-3/+19
| | | | | | | | | | | | These functions accept same arguments as subprocess.Popen(). Patch by Martin Panter.
* | properly wrapBenjamin Peterson2015-04-151-2/+2
| |
* | Add a subprocess.run() function than returns a CalledProcess instance for aGregory P. Smith2015-04-141-119/+170
| | | | | | | | | | more consistent API than the existing call* functions. (enhancement from issue 23342)
* | Merge 3.4 (asyncio doc)Victor Stinner2014-10-131-1/+1
|\ \ | |/
| * asyncio doc: rewrite subprocess docVictor Stinner2014-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add a new example using transport and protocol * rewrite the example using streams to make it much simpler (remove error handling, use a simpler Python code) * copy (and adapt) more documentation from the subprocess module: - add a note about Process.wait() deadlock - add a note about shell injection - etc. * sort Process methods and attributes in the same order than subprocess.Popen methods and attributes, so the documentation looks closer * list differences between Process and subprocess.Popen APIs
* | Issue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line ↵Antoine Pitrou2014-09-211-6/+12
|\ \ | |/ | | | | buffering, rather than block buffering.
| * Issue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line ↵Antoine Pitrou2014-09-211-6/+12
| | | | | | | | buffering, rather than block buffering.
* | Merge: #21347: use string not list in shell=True example.R David Murray2014-05-141-1/+1
|\ \ | |/
| * #21347: use string not list in shell=True example.R David Murray2014-05-141-1/+1
| | | | | | | | Patch by Akira.
* | merge from 3.4 - clean up the subprocess docs warning-soup andGregory P. Smith2014-05-111-93/+62
|\ \ | |/ | | | | s/Unix/POSIX/.
| * Change all references to Unix to POSIX in the subprocess docs. It'sGregory P. Smith2014-05-111-14/+14
| | | | | | | | more accurate and sounds less like a strange tale of yore.
| * Remove the warning-soup from the subprocess documentation by addingGregory P. Smith2014-05-111-79/+48
| | | | | | | | | | a Security Considerations section as preferred by both the devguide and documentation users who do not wish to go insane.
* | Document the subprocess Popen.args attribute (issue21353)Gregory P. Smith2014-04-291-0/+6
|\ \ | |/
| * Document the subprocess Popen.args attribute (issue21353)Gregory P. Smith2014-04-291-0/+6
| |\