]> granicus.if.org Git - python/commitdiff
Issue #20950: Fix typo asyncio doc, wait() has no self parameter
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 16 Mar 2014 20:29:31 +0000 (21:29 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 16 Mar 2014 20:29:31 +0000 (21:29 +0100)
self parameter is implicit. Mention also that communicate() and wait() are
coroutines.

Doc/library/asyncio-subprocess.rst

index 861bcc0e18e8328e93164be68ab6a1e2886d879c..44ef50471488bfcf8227adedad2a636dc73a3b3f 100644 (file)
@@ -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 <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 <coroutine>`.
+
 
 Example
 -------