]> granicus.if.org Git - python/commitdiff
asyncio doc: functions are coroutine, they don't return a coroutine
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 13 Mar 2014 09:58:03 +0000 (10:58 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 13 Mar 2014 09:58:03 +0000 (10:58 +0100)
It's not exact, but easier to understand.

Doc/library/asyncio-protocol.rst
Doc/library/asyncio-subprocess.rst
Doc/library/asyncio-sync.rst

index cbbc1510722a1477b9bd3df8ebaababfc5aeada3..80c974af06fb17c0a6af322adedfc422a76c325f 100644 (file)
@@ -497,6 +497,6 @@ TCP echo server example, send back received data and close the connection::
 :meth:`Transport.close` can be called immediately after
 :meth:`WriteTransport.write` even if data are not sent yet on the socket: both
 methods are asynchronous. ``yield from`` is not needed because these transport
-methods don't return coroutines.
+methods are not coroutines.
 
 
index f1f7bd9ea3717aadc850cc3ced028c44326dcfa8..861bcc0e18e8328e93164be68ab6a1e2886d879c 100644 (file)
@@ -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.
index ceed5dfc423c253a62f6c97d57724cca8570728d..a299f09085e7aae8887ca73acea8e444cc8cb152 100644 (file)
@@ -73,7 +73,7 @@ Lock
       This method blocks until the lock is unlocked, then sets it to locked and
       returns ``True``.
 
-      This method returns a :ref:`coroutine object <coroutine>`.
+      This method is a :ref:`coroutine <coroutine>`.
 
    .. method:: release()