Discussion:
[Python-checkins] cpython (3.4): asyncio doc: protocol_factory of subprocess_exec() and subprocess_shell() must
victor.stinner
2014-10-13 22:53:36 UTC
Permalink
https://hg.python.org/cpython/rev/229d502a6a61
changeset: 93047:229d502a6a61
branch: 3.4
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Oct 14 00:02:10 2014 +0200
summary:
asyncio doc: protocol_factory of subprocess_exec() and subprocess_shell() must
instanciate a subclass of SubprocessProtocol

files:
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
--- a/Doc/library/asyncio-subprocess.rst
+++ b/Doc/library/asyncio-subprocess.rst
@@ -69,6 +69,9 @@
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 @@
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.
--
Repository URL: https://hg.python.org/cpython
Loading...