diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-03-13 09:58:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-03-13 09:58:03 (GMT) |
commit | 2fb3b8270604caa459011c607c7af0c68b2adf28 (patch) | |
tree | d42c13bded84b6c92434968973ccad5139fae670 /Doc/library/asyncio-subprocess.rst | |
parent | 39930c9ca0e8ad2e1465e7a31b4a400d6f34ccff (diff) | |
download | cpython-2fb3b8270604caa459011c607c7af0c68b2adf28.zip cpython-2fb3b8270604caa459011c607c7af0c68b2adf28.tar.gz cpython-2fb3b8270604caa459011c607c7af0c68b2adf28.tar.bz2 |
asyncio doc: functions are coroutine, they don't return a coroutine
It's not exact, but easier to understand.
Diffstat (limited to 'Doc/library/asyncio-subprocess.rst')
-rw-r--r-- | Doc/library/asyncio-subprocess.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst index f1f7bd9..861bcc0 100644 --- a/Doc/library/asyncio-subprocess.rst +++ b/Doc/library/asyncio-subprocess.rst @@ -11,13 +11,13 @@ Create a subprocess Run the shell command *cmd* given as a string. Return a :class:`~asyncio.subprocess.Process` instance. - This function returns a :ref:`coroutine object <coroutine>`. + This function is a :ref:`coroutine <coroutine>`. .. function:: create_subprocess_exec(\*args, stdin=None, stdout=None, stderr=None, loop=None, limit=None, \*\*kwds) Create a subprocess. Return a :class:`~asyncio.subprocess.Process` instance. - This function returns a :ref:`coroutine object <coroutine>`. + This function is a :ref:`coroutine <coroutine>`. Use the :meth:`BaseEventLoop.connect_read_pipe` and :meth:`BaseEventLoop.connect_write_pipe` methods to connect pipes. |