subprocess — Subprocess management — Python 3.11.16 documentation

docs.python.org

Tin mới

Replacing os.system()¶

Calling the program through the shell is usually not required.

concurrent.futures — Launching parallel tasks

sched — Event scheduler

Python Module Index

3.11.16 Documentation

The Python Standard Library

Concurrent Execution

WebAssembly platforms

This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly platforms for more information.

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.

When the timeout parameter is not None, then (on POSIX) the function is implemented using a busy loop (non-blocking call and short sleeps). Use the asyncio module for an asynchronous wait: see asyncio.create_subprocess_e

asyncio.create_subprocess_exec

When the timeout parameter is not None, then (on POSIX) the function is implemented using a busy loop (non-blocking call and short sleeps). Use the asyncio module for an asynchronous wait: see asyncio.create_subprocess_e