mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
asyncio, Tulip issue 221: Fix doc of QueueEmpty and QueueFull
This commit is contained in:
parent
3265344a85
commit
17d87f8ae4
2 changed files with 10 additions and 8 deletions
|
@ -428,13 +428,11 @@ Exceptions
|
||||||
|
|
||||||
.. exception:: QueueEmpty
|
.. exception:: QueueEmpty
|
||||||
|
|
||||||
Exception raised when non-blocking :meth:`~Queue.get` (or
|
Exception raised when the :meth:`~Queue.get_nowait` method is called on a
|
||||||
:meth:`~Queue.get_nowait`) is called
|
:class:`Queue` object which is empty.
|
||||||
on a :class:`Queue` object which is empty.
|
|
||||||
|
|
||||||
|
|
||||||
.. exception:: QueueFull
|
.. exception:: QueueFull
|
||||||
|
|
||||||
Exception raised when non-blocking :meth:`~Queue.put` (or
|
Exception raised when the :meth:`~Queue.put_nowait` method is called on a
|
||||||
:meth:`~Queue.put_nowait`) is called
|
:class:`Queue` object which is full.
|
||||||
on a :class:`Queue` object which is full.
|
|
||||||
|
|
|
@ -13,12 +13,16 @@ from .tasks import coroutine
|
||||||
|
|
||||||
|
|
||||||
class QueueEmpty(Exception):
|
class QueueEmpty(Exception):
|
||||||
'Exception raised by Queue.get(block=0)/get_nowait().'
|
"""Exception raised when Queue.get_nowait() is called on a Queue object
|
||||||
|
which is empty.
|
||||||
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class QueueFull(Exception):
|
class QueueFull(Exception):
|
||||||
'Exception raised by Queue.put(block=0)/put_nowait().'
|
"""Exception raised when the Queue.put_nowait() method is called on a Queue
|
||||||
|
object which is full.
|
||||||
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue