We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e87cc2 commit da986c6Copy full SHA for da986c6
Lib/subprocess.py
@@ -464,7 +464,8 @@ def run(*popenargs,
464
465
The returned instance will have attributes args, returncode, stdout and
466
stderr. By default, stdout and stderr are not captured, and those attributes
467
- will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
+ will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
468
+ or pass capture_output=True to capture both.
469
470
If check is True and the exit code was non-zero, it raises a
471
CalledProcessError. The CalledProcessError object will have the return code
0 commit comments