PyDocs

Nav

Concurrent Execution

CompletedProcess

subprocess

class · Added in 3.5 (source) not Androidnot iOSnot WASI
  • CompletedProcess(args, returncode, stdout=None, stderr=None)
A process that has finished running.

This is returned by run().

Attributes:
  args: The list or str args passed to run().
  returncode: The exit code of the process, negative for signals.
  stdout: The standard output (None if not captured).
  stderr: The standard error (None if not captured).
Members of CompletedProcess

a

args
The arguments used to launch the process.

c

check_returncode
Raise CalledProcessError if the exit code is non-zero.

r

returncode
Exit status of the child process.

s

stderr
Captured stderr from the child process.
stdout
Captured stdout from the child process.
0 Examples
No examples for subprocess/CompletedProcess.
See Also
No see-alsos for subprocess/CompletedProcess
0 Notes
No notes for CompletedProcess