[Python-checkins] cpython: Issue #20950: Fix typo asyncio doc, wait() has no self parameter
victor.stinner
python-checkins at python.org
Sun Mar 16 21:29:53 CET 2014
http://hg.python.org/cpython/rev/1009cf8cb304
changeset: 89689:1009cf8cb304
user: Victor Stinner <victor.stinner at gmail.com>
date: Sun Mar 16 21:29:31 2014 +0100
summary:
Issue #20950: Fix typo asyncio doc, wait() has no self parameter
self parameter is implicit. Mention also that communicate() and wait() are
coroutines.
files:
Doc/library/asyncio-subprocess.rst | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst
--- a/Doc/library/asyncio-subprocess.rst
+++ b/Doc/library/asyncio-subprocess.rst
@@ -107,6 +107,8 @@
The data read is buffered in memory, so do not use this method if the
data size is large or unlimited.
+ This method is a :ref:`coroutine <coroutine>`.
+
.. method:: kill()
Kills the child. On Posix OSs the function sends :py:data:`SIGKILL` to
@@ -129,11 +131,13 @@
to the child. On Windows the Win32 API function
:c:func:`TerminateProcess` is called to stop the child.
- .. method:: wait(self):
+ .. method:: wait():
Wait for child process to terminate. Set and return :attr:`returncode`
attribute.
+ This method is a :ref:`coroutine <coroutine>`.
+
Example
-------
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list