Documentation
The put_nowait method can raise a QueueShutDownexception, see:
|
def put_nowait(self, item): |
|
"""Put an item into the queue without blocking. |
|
|
|
If no free slot is immediately available, raise QueueFull. |
|
|
|
Raises QueueShutDown if the queue has been shut down. |
|
""" |
|
if self._is_shutdown: |
|
raise QueueShutDown |
|
if self.full(): |
But this raise is missing in the put_nowait method entry of the documentation
|
.. method:: put_nowait(item) |
|
|
|
Put an item into the queue without blocking. |
|
|
|
If no free slot is immediately available, raise :exc:`QueueFull`. |
|
|
The same problem exists with the get_nowait method.
Moreover, this 2 methods are not referenced in the QueueShutDown exception section.
|
.. exception:: QueueShutDown |
|
|
|
Exception raised when :meth:`~Queue.put` or :meth:`~Queue.get` is |
|
called on a queue which has been shut down. |
|
|
I can submit a PR, quickly.
Linked PRs
Documentation
The
put_nowaitmethod can raise aQueueShutDownexception, see:cpython/Lib/asyncio/queues.py
Lines 156 to 165 in 9751e1d
But this raise is missing in the
put_nowaitmethod entry of the documentationcpython/Doc/library/asyncio-queue.rst
Lines 93 to 98 in 1b0c05f
The same problem exists with the
get_nowaitmethod.Moreover, this 2 methods are not referenced in the
QueueShutDownexception section.cpython/Doc/library/asyncio-queue.rst
Lines 189 to 193 in 1b0c05f
I can submit a PR, quickly.
Linked PRs
QueueShutDowninasyncio.Queue.put_no_waitandasyncio.Queue.get_nowaitdocumentation methods #152681