From ff818ffbaf8b99e436006a07f60e3f416dc79412 Mon Sep 17 00:00:00 2001 From: Damian Birchler Date: Wed, 17 Dec 2025 16:57:18 +0100 Subject: [PATCH 1/3] Remove reference to thread in documentation of `asyncio.Queue.shutdown`. Fixes https://github.com/python/cpython/issues/142876. --- Doc/library/asyncio-queue.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-queue.rst b/Doc/library/asyncio-queue.rst index d481a1921d532b..7f0da34b7253dc 100644 --- a/Doc/library/asyncio-queue.rst +++ b/Doc/library/asyncio-queue.rst @@ -107,7 +107,7 @@ Queue The queue can no longer grow. Future calls to :meth:`~Queue.put` raise :exc:`QueueShutDown`. Currently blocked callers of :meth:`~Queue.put` will be unblocked - and will raise :exc:`QueueShutDown` in the formerly blocked thread. + and will raise :exc:`QueueShutDown` in the formerly `await`ing task. If *immediate* is false (the default), the queue can be wound down normally with :meth:`~Queue.get` calls to extract tasks From ba3938422449aa5e0d1e0187ed179cfa5ed353b4 Mon Sep 17 00:00:00 2001 From: Damian Birchler Date: Wed, 17 Dec 2025 17:01:16 +0100 Subject: [PATCH 2/3] Use correct RestructuredText inline blockquoting. --- Doc/library/asyncio-queue.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-queue.rst b/Doc/library/asyncio-queue.rst index 7f0da34b7253dc..675d35601cb20a 100644 --- a/Doc/library/asyncio-queue.rst +++ b/Doc/library/asyncio-queue.rst @@ -107,7 +107,7 @@ Queue The queue can no longer grow. Future calls to :meth:`~Queue.put` raise :exc:`QueueShutDown`. Currently blocked callers of :meth:`~Queue.put` will be unblocked - and will raise :exc:`QueueShutDown` in the formerly `await`ing task. + and will raise :exc:`QueueShutDown` in the formerly ``await``ing task. If *immediate* is false (the default), the queue can be wound down normally with :meth:`~Queue.get` calls to extract tasks From 5b77b7784a3af5ea18cc50ab47aad0a18a573a07 Mon Sep 17 00:00:00 2001 From: Damian Birchler Date: Wed, 17 Dec 2025 17:34:44 +0100 Subject: [PATCH 3/3] Don't use block quote at all. Co-authored-by: Kumar Aditya --- Doc/library/asyncio-queue.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-queue.rst b/Doc/library/asyncio-queue.rst index 675d35601cb20a..a9735ae80652df 100644 --- a/Doc/library/asyncio-queue.rst +++ b/Doc/library/asyncio-queue.rst @@ -107,7 +107,7 @@ Queue The queue can no longer grow. Future calls to :meth:`~Queue.put` raise :exc:`QueueShutDown`. Currently blocked callers of :meth:`~Queue.put` will be unblocked - and will raise :exc:`QueueShutDown` in the formerly ``await``ing task. + and will raise :exc:`QueueShutDown` in the formerly awaiting task. If *immediate* is false (the default), the queue can be wound down normally with :meth:`~Queue.get` calls to extract tasks