subprocess — Subprocess management — Python 3.16.0a0 documentation

docs.python.org

Tin mới

Replacing os.system()¶

Calling the program through the shell is usually not required.

concurrent.interpreters — Multiple interpreters in the same process

sched — Event scheduler

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Concurrent Execution

WebAssembly platforms

This module is not supported on mobile platforms or WebAssembly platforms.

glob: Unix shell style pathname pattern expansion.

If encoding or errors are specified, or text (also known as universal_newlines) is true, the file objects stdin, stdout and stderr will be opened in text mode using the encoding and errors specified in the call or the de

fnmatch: Unix shell style filename pattern matching.

If encoding or errors are specified, or text (also known as universal_newlines) is true, the file objects stdin, stdout and stderr will be opened in text mode using the encoding and errors specified in the call or the de

os.path.expandvars()

If encoding or errors are specified, or text (also known as universal_newlines) is true, the file objects stdin, stdout and stderr will be opened in text mode using the encoding and errors specified in the call or the de

shutil: High-level file operations, including copying.

If encoding or errors are specified, or text (also known as universal_newlines) is true, the file objects stdin, stdout and stderr will be opened in text mode using the encoding and errors specified in the call or the de

locale.getpreferredencoding(False)

Changed in version 3.3: When universal_newlines is True, the class uses the encoding locale.getpreferredencoding(False) instead of locale.getpreferredencoding(). See the io.TextIOWrapper class for more information on thi

Security Considerations¶

asyncio: Asynchronous I/O.

Use the asyncio module for an asynchronous wait: see asyncio.create_subprocess_exec.

asyncio.create_subprocess_exec

Use the asyncio module for an asynchronous wait: see asyncio.create_subprocess_exec.