Skip to content

Commit 4654500

Browse files
authored
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
Patch by Zackery Spytz.
1 parent fa098b6 commit 4654500

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Doc/library/subprocess.rst

Lines changed: 8 additions & 4 deletions
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.
@@ -1085,7 +1085,8 @@ Prior to Python 3.5, these three functions comprised the high level API to
10851085
subprocess. You can now use :func:`run` in many cases, but lots of existing code
10861086
calls these functions.
10871087

1088-
.. function:: call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None)
1088+
.. function:: call(args, *, stdin=None, stdout=None, stderr=None, \
1089+
shell=False, cwd=None, timeout=None, **other_popen_kwargs)
10891090
10901091
Run the command described by *args*. Wait for command to complete, then
10911092
return the :attr:`~Popen.returncode` attribute.
@@ -1111,7 +1112,9 @@ calls these functions.
11111112
.. versionchanged:: 3.3
11121113
*timeout* was added.
11131114

1114-
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, shell=False, cwd=None, timeout=None)
1115+
.. function:: check_call(args, *, stdin=None, stdout=None, stderr=None, \
1116+
shell=False, cwd=None, timeout=None, \
1117+
**other_popen_kwargs)
11151118
11161119
Run command with arguments. Wait for command to complete. If the return
11171120
code was zero then return, otherwise raise :exc:`CalledProcessError`. The
@@ -1142,7 +1145,8 @@ calls these functions.
11421145

11431146
.. function:: check_output(args, *, stdin=None, stderr=None, shell=False, \
11441147
cwd=None, encoding=None, errors=None, \
1145-
universal_newlines=None, timeout=None, text=None)
1148+
universal_newlines=None, timeout=None, text=None, \
1149+
**other_popen_kwargs)
11461150
11471151
Run command with arguments and return its output.
11481152

0 commit comments

Comments
 (0)