From: Victor Stinner Date: Sun, 16 Mar 2014 20:29:31 +0000 (+0100) Subject: Issue #20950: Fix typo asyncio doc, wait() has no self parameter X-Git-Tag: v3.4.1rc1~233^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bdf786e747e59ab47a3c45c0fd42c12cd7cb221;p=python Issue #20950: Fix typo asyncio doc, wait() has no self parameter self parameter is implicit. Mention also that communicate() and wait() are coroutines. --- diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst index 861bcc0e18..44ef504714 100644 --- a/Doc/library/asyncio-subprocess.rst +++ b/Doc/library/asyncio-subprocess.rst @@ -107,6 +107,8 @@ Process 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 `. + .. method:: kill() Kills the child. On Posix OSs the function sends :py:data:`SIGKILL` to @@ -129,11 +131,13 @@ Process 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 `. + Example -------