Skip to content
Open
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
12 changes: 8 additions & 4 deletions Doc/library/concurrent.interpreters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,15 @@ This module defines the following functions:
Initialize a new (idle) Python interpreter
and return a :class:`Interpreter` object for it.

.. function:: create_queue()
.. function:: create_queue(maxsize=0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this include the full signature? maxsize=0, *, unbounditems=UNBOUND


Initialize a new cross-interpreter queue and return a :class:`Queue`
object for it.

*maxsize* is an integer that sets the upperbound limit on the number of
items that can be placed in the queue. Insertion will be blocked once this
size has been reached, until queue items are consumed. If *maxsize* is
less than or equal to zero, the queue size is infinite.

Interpreter objects
^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -271,7 +275,7 @@ Interpreter objects
Some objects are actually shared and some are copied efficiently,
but most are copied via :mod:`pickle`. See :ref:`interp-object-sharing`.

.. method:: exec(code, /, dedent=True)
.. method:: exec(code, /)

Run the given source code in the interpreter (in the current thread).

Expand Down Expand Up @@ -335,13 +339,13 @@ Communicating Between Interpreters
The queue's ID.


.. exception:: QueueEmptyError
.. exception:: QueueEmpty

This exception, a subclass of :exc:`queue.Empty`, is raised from
:meth:`!Queue.get` and :meth:`!Queue.get_nowait` when the queue
is empty.

.. exception:: QueueFullError
.. exception:: QueueFull

This exception, a subclass of :exc:`queue.Full`, is raised from
:meth:`!Queue.put` and :meth:`!Queue.put_nowait` when the queue
Expand Down
Loading