Global web icon
python.org
https://docs.python.org/3/library/subprocess.html
subprocess — Subprocess management — Python 3.14.2 documentation
Information about how the subprocess module can be used to replace these modules and functions can be found in the following sections.
Global web icon
python.org
https://docs.python.org/3.12/library/asyncio-subpr…
Subprocesses — Python 3.12.12 documentation
Because all asyncio subprocess functions are asynchronous and asyncio provides many tools to work with such functions, it is easy to execute and monitor multiple subprocesses in parallel.
Global web icon
python.org
https://docs.python.org/3/library/concurrency.html
Concurrent Execution — Python 3.14.1 documentation
Older high-level API Replacing Older Functions with the subprocess Module Replacing /bin/sh shell command substitution Replacing shell pipeline Replacing os.system() Replacing the os.spawn family Replacing os.popen() Legacy Shell Invocation Functions Notes Timeout Behavior Converting an argument sequence to a string on Windows Disable use of ...
Global web icon
python.org
https://docs.python.org/3/library/asyncio-platform…
Platform Support — Python 3.14.1 documentation
Subprocesses are not supported, i.e. loop.subprocess_exec() and loop.subprocess_shell() methods are not implemented. ProactorEventLoop has the following limitations:
Global web icon
python.org
https://docs.python.org/3.15/whatsnew/3.13.html
What’s New In Python 3.13 — Python 3.15.0a2 documentation
The subprocess module now uses the posix_spawn() function in more situations, including when close_fds is True (the default) on many modern platforms. This should provide a notable performance increase when launching processes on FreeBSD and Solaris.
Global web icon
python.org
https://docs.python.org/3.15/library/idle.html
IDLE — Python editor and shell — Python 3.15.0a2 documentation
By default, IDLE executes user code in a separate subprocess via a socket, which uses the internal loopback interface. This connection is not externally visible and no data is sent to or received from the internet.
Global web icon
python.org
https://docs.python.org/3/library/shlex.html
shlex — Simple lexical analysis — Python 3.14.2 documentation
Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnerability. Consider using functions that pass command arguments with lists such as subprocess.run() with shell=False. This idiom would be unsafe:
Global web icon
python.org
https://docs.python.org/3/library/asyncio-api-inde…
High-level API Index — Python 3.14.2 documentation
Examples Executing a shell command. See also the subprocess APIs documentation. Streams ¶ High-level APIs to work with network IO.
Global web icon
python.org
https://docs.python.org/3/library/security_warning…
Security Considerations — Python 3.14.1 documentation
ssl: SSL/TLS security considerations subprocess: Subprocess security considerations tempfile: mktemp is deprecated due to vulnerability to race conditions xml: XML security zipfile: maliciously prepared .zip files can cause disk volume exhaustion The -I command line option can be used to run Python in isolated mode.
Global web icon
python.org
https://docs.python.org/3/library/pty.html
pty — Pseudo-terminal utilities — Python 3.14.1 documentation
Source code: Lib/pty.py The pty module defines operations for handling the pseudo-terminal concept: starting another process and being able to write to and read from its controlling terminal progra...