]> granicus.if.org Git - python/commitdiff
asyncio doc: update also Queue docstrings
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 22 Dec 2014 21:09:50 +0000 (22:09 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 22 Dec 2014 21:09:50 +0000 (22:09 +0100)
Lib/asyncio/queues.py

index 41551a9022faa2aa4fe92a8ab4a4c707993e86e1..8f6c257701f70ca845425ca6516bbd7de9412865 100644 (file)
@@ -111,8 +111,10 @@ class Queue:
     def put(self, item):
         """Put an item into the queue.
 
-        If you yield from put(), wait until a free slot is available
-        before adding item.
+        Put an item into the queue. If the queue is full, wait until a free
+        slot is available before adding item.
+
+        This method is a coroutine.
         """
         self._consume_done_getters()
         if self._getters:
@@ -161,7 +163,9 @@ class Queue:
     def get(self):
         """Remove and return an item from the queue.
 
-        If you yield from get(), wait until a item is available.
+        If queue is empty, wait until an item is available.
+
+        This method is a coroutine.
         """
         self._consume_done_putters()
         if self._putters: