Skip to content

Commit 257e11c

Browse files
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
(cherry picked from commit 4654500) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 460eac2 commit 257e11c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Doc/library/subprocess.rst

+8-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
4040
.. function:: run(args, *, stdin=None, input=None, stdout=None, stderr=None,\
4141
capture_output=False, shell=False, cwd=None, timeout=None, \
4242
check=False, encoding=None, errors=None, text=None, env=None, \
43-
universal_newlines=None)
43+
universal_newlines=None, **other_popen_kwargs)
4444
4545
Run the command described by *args*. Wait for command to complete, then
4646
return a :class:`CompletedProcess` instance.
@@ -1049,7 +1049,8 @@ Prior to Python 3.5, these three functions comprised the high level API to
10491049
subprocess. You can now use :func:`run` in many cases, but lots of existing code
10501050
calls these functions.
10511051

1052-
.. function:: call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None)
1052+
.. function:: call(args, *, stdin=None, stdout=None, stderr=None, \
1053+
shell=False, cwd=None, timeout=None, **other_popen_kwargs)
10531054
10541055
Run the command described by *args*. Wait for command to complete, then
10551056
return the :attr:`~Popen.returncode` attribute.
@@ -1075,7 +1076,9 @@ calls these functions.
10751076
.. versionchanged:: 3.3
10761077
*timeout* was added.
10771078

1078-
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None)
1079+
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \
1080+
shell=False, cwd=None, timeout=None, \
1081+
**other_popen_kwargs)
10791082
10801083
Run command with arguments. Wait for command to complete. If the return
10811084
code was zero then return, otherwise raise :exc:`CalledProcessError`. The
@@ -1106,7 +1109,8 @@ calls these functions.
11061109

11071110
.. function:: check_output(args, *, stdin=None, stderr=None, shell=False, \
11081111
cwd=None, encoding=None, errors=None, \
1109-
universal_newlines=None, timeout=None, text=None)
1112+
universal_newlines=None, timeout=None, text=None, \
1113+
**other_popen_kwargs)
11101114
11111115
Run command with arguments and return its output.
11121116

0 commit comments

Comments
 (0)