diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-05-19 09:27:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 09:27:49 (GMT) |
commit | 257e11cebde6b29177a206abd1e395367799ed42 (patch) | |
tree | 3833a45d24845170d9e98ecff4057371e3e412bf /Doc/library | |
parent | 460eac20a625d5dcef409dadc120a26d272a8013 (diff) | |
download | cpython-257e11cebde6b29177a206abd1e395367799ed42.zip cpython-257e11cebde6b29177a206abd1e395367799ed42.tar.gz cpython-257e11cebde6b29177a206abd1e395367799ed42.tar.bz2 |
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
(cherry picked from commit 46545000c2a30b46aed717b546bc09e5bae7148f)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/subprocess.rst | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 0b692b4..a0152a8 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -40,7 +40,7 @@ compatibility with older versions, see the :ref:`call-function-trio` section. .. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\ capture_output=False, shell=False, cwd=None, timeout=None, \ check=False, encoding=None, errors=None, text=None, env=None, \ - universal_newlines=None) + universal_newlines=None, **other_popen_kwargs) Run the command described by *args*. Wait for command to complete, then return a :class:`CompletedProcess` instance. @@ -1049,7 +1049,8 @@ Prior to Python 3.5, these three functions comprised the high level API to subprocess. You can now use :func:`run` in many cases, but lots of existing code calls these functions. -.. function:: call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None) +.. function:: call(args, *, stdin=None, stdout=None, stderr=None, \ + shell=False, cwd=None, timeout=None, **other_popen_kwargs) Run the command described by *args*. Wait for command to complete, then return the :attr:`~Popen.returncode` attribute. @@ -1075,7 +1076,9 @@ calls these functions. .. versionchanged:: 3.3 *timeout* was added. -.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None) +.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \ + shell=False, cwd=None, timeout=None, \ + **other_popen_kwargs) Run command with arguments. Wait for command to complete. If the return code was zero then return, otherwise raise :exc:`CalledProcessError`. The @@ -1106,7 +1109,8 @@ calls these functions. .. function:: check_output(args, *, stdin=None, stderr=None, shell=False, \ cwd=None, encoding=None, errors=None, \ - universal_newlines=None, timeout=None, text=None) + universal_newlines=None, timeout=None, text=None, \ + **other_popen_kwargs) Run command with arguments and return its output. |