diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-10-13 22:02:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-10-13 22:02:10 (GMT) |
commit | 3c95062f52afe43f12f774af57d18e87e76d098d (patch) | |
tree | 7534d2220590eb328d83a5ece5d52c118523e67e /Doc/library | |
parent | 4270a24dd98dc2d67418958adada67191b6cdc43 (diff) | |
download | cpython-3c95062f52afe43f12f774af57d18e87e76d098d.zip cpython-3c95062f52afe43f12f774af57d18e87e76d098d.tar.gz cpython-3c95062f52afe43f12f774af57d18e87e76d098d.tar.bz2 |
asyncio doc: protocol_factory of subprocess_exec() and subprocess_shell() must
instanciate a subclass of SubprocessProtocol
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/asyncio-subprocess.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst index b653261..4713106 100644 --- a/Doc/library/asyncio-subprocess.rst +++ b/Doc/library/asyncio-subprocess.rst @@ -69,6 +69,9 @@ Run subprocesses asynchronously using the :mod:`subprocess` module. however, where :class:`~subprocess.Popen` takes a single argument which is list of strings, :func:`subprocess_exec` takes multiple string arguments. + The *protocol_factory* must instanciate a subclass of the + :class:`asyncio.SubprocessProtocol` class. + Other parameters: * *stdin*: Either a file-like object representing the pipe to be connected @@ -109,6 +112,9 @@ Run subprocesses asynchronously using the :mod:`subprocess` module. using the platform's "shell" syntax. This is similar to the standard library :class:`subprocess.Popen` class called with ``shell=True``. + The *protocol_factory* must instanciate a subclass of the + :class:`asyncio.SubprocessProtocol` class. + See :meth:`~BaseEventLoop.subprocess_exec` for more details about the remaining arguments. |