From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 28 Mar 2026 11:27:59 +0000 (+0100) Subject: [3.13] gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (#146568) X-Git-Tag: v3.13.13~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0991b1e0f6b99d22e29d54276ddce2b3762617c;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (#146568) gh-146544: Fix `asyncio.Queue` docstring ambiguity (GH-146545) (cherry picked from commit 578d726d467dee14abe52a7790aca36e4cb9f70c) Co-authored-by: Jonathan Dung --- diff --git a/Lib/asyncio/queues.py b/Lib/asyncio/queues.py index 084fccaaff2f..756216fac809 100644 --- a/Lib/asyncio/queues.py +++ b/Lib/asyncio/queues.py @@ -37,7 +37,7 @@ class Queue(mixins._LoopBoundMixin): is an integer greater than 0, then "await put()" will block when the queue reaches maxsize, until an item is removed by get(). - Unlike the standard library Queue, you can reliably know this Queue's size + Unlike queue.Queue, you can reliably know this Queue's size with qsize(), since your single-threaded asyncio application won't be interrupted between calling qsize() and doing an operation on the Queue. """