[Python-checkins] cpython (3.4): asyncio doc: update also Queue docstrings
victor.stinner
python-checkins at python.org
Mon Dec 22 22:10:24 CET 2014
https://hg.python.org/cpython/rev/c4643b32cd9a
changeset: 93949:c4643b32cd9a
branch: 3.4
parent: 93947:ae0b4076b9ad
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Dec 22 22:09:50 2014 +0100
summary:
asyncio doc: update also Queue docstrings
files:
Lib/asyncio/queues.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py
--- a/Lib/asyncio/queues.py
+++ b/Lib/asyncio/queues.py
@@ -111,8 +111,10 @@
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 @@
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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list