summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-01-25 17:38:31 -0800
committerGuido van Rossum <guido@python.org>2014-01-25 17:38:31 -0800
commit1acbbea4b411e10c893518fa455f4260e093da19 (patch)
tree044c255b66a6cf2830c9255383dfc417a04a0b2c /Doc
parenta9b95f98caa027d2f6dbb8e7a7a574f3d1dfd71c (diff)
downloadcpython-1acbbea4b411e10c893518fa455f4260e093da19.tar.gz
Document asyncio.QueueFull/Empty.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-sync.rst20
1 files changed, 18 insertions, 2 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 5ac9f34d23..e125951a22 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -286,7 +286,7 @@ Queue
Remove and return an item from the queue.
Return an item if one is immediately available, else raise
- :exc:`~queue.Empty`.
+ :exc:`QueueEmpty`.
.. method:: put(item)
@@ -301,7 +301,7 @@ Queue
Put an item into the queue without blocking.
- If no free slot is immediately available, raise :exc:`~queue.Full`.
+ If no free slot is immediately available, raise :exc:`QueueFull`.
.. method:: qsize()
@@ -367,3 +367,19 @@ JoinableQueue
Raises :exc:`ValueError` if called more times than there were items
placed in the queue.
+
+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:: QueueFull
+
+ Exception raised when non-blocking :meth:`~Queue.put` (or
+ :meth:`~Queue.put_nowait`) is called
+ on a :class:`Queue` object which is full.