| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
(GH-117996) (GH-118006)
(cherry picked from commit a4b44d39cd6941cc03590fee7538776728bdfd0a)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
| |
|
|
|
|
| |
Windows (GH-101286) (#101710)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When the modern text= spelling of the universal_newlines= parameter was added
for Python 3.7, check_output's special case around input=None was overlooked.
So it behaved differently with universal_newlines=True vs text=True. This
reconciles the behavior to be consistent and adds a test to guarantee it.
Also clarifies the existing check_output documentation.
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
(cherry picked from commit 64abf373444944a240274a9b6d66d1cb01ecfcdd)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
| |
|
|
|
|
|
| |
(GH-20283)
(cherry picked from commit bf2e515fa43406d4bd9c4c53ecc9364034d8f9f6)
Co-authored-by: Gareth Rees <gdr@garethrees.org>
|
| |
|
|
|
| |
(cherry picked from commit 46545000c2a30b46aed717b546bc09e5bae7148f)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 65460565df99fbda6a74b6bb4bf99affaaf8bd95)
Co-authored-by: Mathieu Dupuy <mathieu.dupuy@doctolib.com>
|
| |
|
|
|
|
|
|
|
| |
Clarifies that the use of `shlex.split` is more instructive than
normative, and provides a simpler example.
https://bugs.python.org/issue13826
(cherry picked from commit 95d024d585bd3ed627437a2f0cbc783c8a014c8a)
Co-authored-by: Tim D. Smith <github@tim-smith.us>
|
| |
|
| |
(cherry picked from commit f25875af425a3480e557aaedf49c3bb867bcbd5d)
|
| |
|
|
|
| |
(cherry picked from commit 1a13efb7e05b545def26f29c954751fdb6b22fa3)
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 98d90f745d35d5d07bffcb46788b50e05eea56c6)
Co-authored-by: Christian Heimes <christian@python.org>
|
| |
|
|
|
|
| |
Replace backquotes with POSIXy command substitution in example.
(cherry picked from commit 6a61714cde7037cd9a1bcc11ecccb17fe3081295)
Co-authored-by: David Jones <drj@pobox.com>
|
| |
|
|
|
|
| |
Also updates some (unreleased) event names to be consistent with the others.
(cherry picked from commit 44f91c388a6f4da9ed3300df32ca290b8aa104ea)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
| |
|
|
|
| |
(cherry picked from commit 60419a7e96577cf783b3b45bf3984f9fb0d7ddff)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
| | |
|
| |
|
| |
Clarify how to capture stdout and stderr combined into one stream.
|
| |
|
|
|
| |
Document that subprocess.Popen no longer raise an exception on error
like missing program on very specific platforms when using
os.posix_spawn() is used.
|
| |
|
|
|
| |
Clarify capturing or suppressing stdout and stderr on the old call APIs.
Do not state that they are equivalent to run() calls when they are not implemented using run as that was misleading. Unlike run they cannot handle stdout or stderr being set to PIPE without a risk of deadlock.
|
| | |
|
| |
|
|
| |
is available with the parent process (GH-11422)
|
| |
|
|
|
|
|
|
| |
* universal_newlines defaulting to False would suggest, that not
specifying universal_newlines explicitly and setting text to True
should cause an error, which is not the case.
* The run function didn't have the universal_newlines parameter
documented
* The check_output function didn't have its text parameter documented
|
| |
|
|
|
|
| |
Replace "Availability: xxx" with ".. availability:: xxx" in the doc.
Original patch by Georg Brandl.
Co-Authored-By: Georg Brandl <georg@python.org>
|
| |
|
| |
Make it more accurate and not limited to UNIX.
|
| | |
|
| |
|
|
|
|
| |
uniformity. (GH8114)
Per the recommendation in our Developer's Guide:
https://devguide.python.org/documenting/#paragraph-level-markup
|
| | |
|
| |
|
| |
Clarify the subprocess documentation.
|
| |
|
|
|
|
| |
* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"
This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.
|
| |
|
| |
Describe *text* as an alias for *universal_newlines* in more places that people are likely to be referred to.
|
| |
|
| |
Fixes the documentation for `subprocess.check_output()` not mentioning that the encoding and errors parameters were added in 3.6.
|
| |
|
| |
Allow os.PathLike args in subprocess APIs.
|
| |
|
|
| |
Add "capture_output=True" option to subprocess.run, this is equivalent to
setting stdout=PIPE, stderr=PIPE but is much more readable.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
* Document STARTUPINFO constructor
* Move versionchanged directive to above of attributes
|
| |
|
|
| |
PathLike objects (#157)
|
| |
|
|
|
|
|
| |
The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.
Patch by Subhendu Ghosh.
|
| | |
|
| |\ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| | | |
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
Patch by Julien Palard.
|