[Python-checkins] peps: Clarify description of wait().

guido.van.rossum python-checkins at python.org
Fri Jan 4 19:35:29 CET 2013


http://hg.python.org/peps/rev/e7df098ee19e
changeset:   4649:e7df098ee19e
user:        Guido van Rossum <guido at google.com>
date:        Fri Jan 04 10:35:19 2013 -0800
summary:
  Clarify description of wait().

files:
  pep-3156.txt |  13 +++++++------
  1 files changed, 7 insertions(+), 6 deletions(-)


diff --git a/pep-3156.txt b/pep-3156.txt
--- a/pep-3156.txt
+++ b/pep-3156.txt
@@ -765,12 +765,13 @@
 provided:
 
 - ``tulip.wait(fs, ...)``.  Wait for the Futures or coroutines given
-  by ``fs`` to complete.  This is a coroutine whose result on success
-  is a tuple of two sets of Futures, ``(done, not_done)``.  Optional
-  arguments ``timeout`` and ``return_when`` have the same meaning and
-  defaults as for ``concurrent.futures.wait()``.  The constants
-  ``FIRST_COMPLETED``, ``FIRST_EXCEPTION``, ``ALL_COMPLETED`` are
-  defined with the same values and the same meanings as in PEP 3148.
+  by ``fs`` to complete.  Coroutine arguments will be wrapped in Tasks
+  (see below).  The result is a tuple of two sets of Futures, ``(done,
+  not_done)``.  Optional arguments ``timeout`` and ``return_when``
+  have the same meaning and defaults as for
+  ``concurrent.futures.wait()``.  The constants ``FIRST_COMPLETED``,
+  ``FIRST_EXCEPTION``, ``ALL_COMPLETED`` are defined with the same
+  values and the same meanings as in PEP 3148.
 
 - ``as_completed(fs, ...)``.  Return an iterator whose values are
   coroutines; waiting for successive values waits until the next

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list