Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
17d87f8a
Commit
17d87f8a
authored
Feb 03, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncio, Tulip issue 221: Fix doc of QueueEmpty and QueueFull
parent
3265344a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
Doc/library/asyncio-sync.rst
Doc/library/asyncio-sync.rst
+4
-6
Lib/asyncio/queues.py
Lib/asyncio/queues.py
+6
-2
No files found.
Doc/library/asyncio-sync.rst
View file @
17d87f8a
...
...
@@ -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.
Lib/asyncio/queues.py
View file @
17d87f8a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment