]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-147965: Add shutdown() to multiprocessing.Queue excluded methods (GH-147970...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 12 Apr 2026 00:51:58 +0000 (02:51 +0200)
committerGitHub <noreply@github.com>
Sun, 12 Apr 2026 00:51:58 +0000 (00:51 +0000)
gh-147965: Add shutdown() to multiprocessing.Queue excluded methods (GH-147970)

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.
(cherry picked from commit 22290ed011a8ac4060390e57f53053ab932fb3f3)

Co-authored-by: WYSIATI <chester.lee.cold@gmail.com>
Doc/library/multiprocessing.rst

index d581b73cf0bd8de03f10e5f8d6f3af918b544e58..9a50bfcc40069b2c98f5dd88dadc5b21c5bac38d 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()