]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-147965: Add shutdown() to multiprocessing.Queue excluded methods (GH-147970)
authorWYSIATI <chester.lee.cold@gmail.com>
Sun, 12 Apr 2026 00:46:06 +0000 (08:46 +0800)
committerGitHub <noreply@github.com>
Sun, 12 Apr 2026 00:46:06 +0000 (17:46 -0700)
The multiprocessing.Queue documentation states it implements all
methods of queue.Queue except task_done() and join(). Since
queue.Queue.shutdown() was added in Python 3.13,
multiprocessing.Queue also does not implement it. Update the docs
to include shutdown() in the list of excluded methods.

Doc/library/multiprocessing.rst

index 2b67d10d7bf1b7b7220df5d7813bdb87749a62f9..63bc252e129dfb192d7526b033435d03078b6982 100644 (file)
@@ -932,7 +932,8 @@ For an example of the usage of queues for interprocess communication see
    standard library's :mod:`queue` module are raised to signal timeouts.
 
    :class:`Queue` implements all the methods of :class:`queue.Queue` except for
-   :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join`.
+   :meth:`~queue.Queue.task_done`, :meth:`~queue.Queue.join`, and
+   :meth:`~queue.Queue.shutdown`.
 
    .. method:: qsize()