Skip to content

Commit 2fb3b82

Browse files
committed
asyncio doc: functions are coroutine, they don't return a coroutine
It's not exact, but easier to understand.
1 parent 39930c9 commit 2fb3b82

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/asyncio-protocol.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,6 @@ TCP echo server example, send back received data and close the connection::
497497
:meth:`Transport.close` can be called immediately after
498498
:meth:`WriteTransport.write` even if data are not sent yet on the socket: both
499499
methods are asynchronous. ``yield from`` is not needed because these transport
500-
methods don't return coroutines.
500+
methods are not coroutines.
501501

502502

Doc/library/asyncio-subprocess.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Create a subprocess
1111
Run the shell command *cmd* given as a string. Return a :class:`~asyncio.subprocess.Process`
1212
instance.
1313

14-
This function returns a :ref:`coroutine object <coroutine>`.
14+
This function is a :ref:`coroutine <coroutine>`.
1515

1616
.. function:: create_subprocess_exec(\*args, stdin=None, stdout=None, stderr=None, loop=None, limit=None, \*\*kwds)
1717

1818
Create a subprocess. Return a :class:`~asyncio.subprocess.Process` instance.
1919

20-
This function returns a :ref:`coroutine object <coroutine>`.
20+
This function is a :ref:`coroutine <coroutine>`.
2121

2222
Use the :meth:`BaseEventLoop.connect_read_pipe` and
2323
:meth:`BaseEventLoop.connect_write_pipe` methods to connect pipes.

Doc/library/asyncio-sync.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Lock
7373
This method blocks until the lock is unlocked, then sets it to locked and
7474
returns ``True``.
7575

76-
This method returns a :ref:`coroutine object <coroutine>`.
76+
This method is a :ref:`coroutine <coroutine>`.
7777

7878
.. method:: release()
7979

0 commit comments

Comments
 (0)