From: Victor Stinner Date: Mon, 22 Dec 2014 21:09:50 +0000 (+0100) Subject: asyncio doc: update also Queue docstrings X-Git-Tag: v3.5.0a1~282^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=952ec98abb28eeda92e13c9c142f5288aecc5a21;p=python asyncio doc: update also Queue docstrings --- diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py index 41551a9022..8f6c257701 100644 --- a/Lib/asyncio/queues.py +++ b/Lib/asyncio/queues.py @@ -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: