Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/queue.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ provide the public methods described below.

.. method:: Queue.put_nowait(item)

Equivalent to ``put(item, False)``.
Equivalent to ``put(item, block=False)``.


.. method:: Queue.get(block=True, timeout=None)
Expand Down Expand Up @@ -248,7 +248,7 @@ SimpleQueue Objects

.. method:: SimpleQueue.put_nowait(item)

Equivalent to ``put(item)``, provided for compatibility with
Equivalent to ``put(item, block=False)``, provided for compatibility with
:meth:`Queue.put_nowait`.


Expand Down
2 changes: 1 addition & 1 deletion Lib/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def get(self, block=True, timeout=None):
def put_nowait(self, item):
'''Put an item into the queue without blocking.

This is exactly equivalent to `put(item)` and is only provided
This is exactly equivalent to `put(item, block=False)` and is only provided
for compatibility with the Queue class.
'''
return self.put(item, block=False)
Expand Down