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.2 documentation
subprocess — Subprocess management Using the subprocess Module Frequently Used Arguments Popen Constructor Exceptions Security Considerations Popen Objects Windows Popen Helpers Windows Constants Older high-level API Replacing Older Functions with the subprocess Module Replacing /bin/sh shell command substitution Replacing shell pipeline ...
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/asyncio-platform…
Platform Support — Python 3.14.2 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/contents.html
Python Documentation contents — Python 3.15.0a2 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/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.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/library/security_warning…
Security Considerations — Python 3.14.2 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/index.html
The Python Standard Library — Python 3.14.2 documentation
subprocess — Subprocess management sched — Event scheduler queue — A synchronized queue class contextvars — Context Variables _thread — Low-level threading API Networking and Interprocess Communication asyncio — Asynchronous I/O socket — Low-level networking interface ssl — TLS/SSL wrapper for socket objects