Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c95062

Browse files
committed
asyncio doc: protocol_factory of subprocess_exec() and subprocess_shell() must
instanciate a subclass of SubprocessProtocol
1 parent 4270a24 commit 3c95062

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/library/asyncio-subprocess.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
6969
however, where :class:`~subprocess.Popen` takes a single argument which is
7070
list of strings, :func:`subprocess_exec` takes multiple string arguments.
7171

72+
The *protocol_factory* must instanciate a subclass of the
73+
:class:`asyncio.SubprocessProtocol` class.
74+
7275
Other parameters:
7376

7477
* *stdin*: Either a file-like object representing the pipe to be connected
@@ -109,6 +112,9 @@ Run subprocesses asynchronously using the :mod:`subprocess` module.
109112
using the platform's "shell" syntax. This is similar to the standard library
110113
:class:`subprocess.Popen` class called with ``shell=True``.
111114

115+
The *protocol_factory* must instanciate a subclass of the
116+
:class:`asyncio.SubprocessProtocol` class.
117+
112118
See :meth:`~BaseEventLoop.subprocess_exec` for more details about
113119
the remaining arguments.
114120

0 commit comments

Comments
 (0)