The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several older modules and functions:
os.systemos.spawn﹡
Information about how the subprocess module can be used to replace these modules and functions can be found in the following sections.
See also:PEP 324 – PEP proposing the subprocess module
Availability: not Android, not iOS, not WASI.
This module is not supported on mobile platforms or WebAssembly platforms.