]> granicus.if.org Git - python/commitdiff
asyncio doc: protocol_factory of subprocess_exec() and subprocess_shell() must
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 13 Oct 2014 22:02:10 +0000 (00:02 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 13 Oct 2014 22:02:10 +0000 (00:02 +0200)
instanciate a subclass of SubprocessProtocol

Doc/library/asyncio-subprocess.rst

index b6532618266b5f67b1f380c541944a512354c780..4713106eb5d82686fe259945ce82b975b09a4288 100644 (file)
@@ -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.