Subprocesses — Python 3.16.0a0 documentation

docs.python.org

Tin mới

Synchronization Primitives

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Networking and Interprocess Communication

asyncio — Asynchronous I/O

asyncio.StreamReader

The limit argument sets the buffer limit for StreamReader wrappers for stdout and stderr (if subprocess.PIPE is passed to stdout and stderr arguments).

loop.subprocess_exec()

The limit argument sets the buffer limit for StreamReader wrappers for stdout and stderr (if subprocess.PIPE is passed to stdout and stderr arguments).

Subprocess Support on Windows

Subprocesses are available for Windows if a ProactorEventLoop is used. See Subprocess Support on Windows for details.

Subprocess Transports

asyncio also has the following low-level APIs to work with subprocesses: loop.subprocess_exec(), loop.subprocess_shell(), loop.connect_read_pipe(), loop.connect_write_pipe(), as well as the Subprocess Transports and Subp

subprocess.Popen.poll

unlike Popen, Process instances do not have an equivalent to the poll() method;

ConnectionResetError

read data from stdout and stderr, until EOF is reached;

Concurrency and multithreading in asyncio

The Concurrency and multithreading in asyncio section.