Commit 17d87f8a authored by Victor Stinner's avatar Victor Stinner

asyncio, Tulip issue 221: Fix doc of QueueEmpty and QueueFull

parent 3265344a
......@@ -428,13 +428,11 @@ Exceptions
.. exception:: QueueEmpty
Exception raised when non-blocking :meth:`~Queue.get` (or
:meth:`~Queue.get_nowait`) is called
on a :class:`Queue` object which is empty.
Exception raised when the :meth:`~Queue.get_nowait` method is called on a
:class:`Queue` object which is empty.
.. exception:: QueueFull
Exception raised when non-blocking :meth:`~Queue.put` (or
:meth:`~Queue.put_nowait`) is called
on a :class:`Queue` object which is full.
Exception raised when the :meth:`~Queue.put_nowait` method is called on a
:class:`Queue` object which is full.
......@@ -13,12 +13,16 @@ from .tasks import coroutine
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
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment