From: Jonathan Dung Date: Sat, 28 Mar 2026 11:05:45 +0000 (+0800) Subject: gh-146544: Fix `asyncio.Queue` docstring ambiguity (#146545) X-Git-Tag: v3.15.0a8~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=578d726d467dee14abe52a7790aca36e4cb9f70c;p=thirdparty%2FPython%2Fcpython.git gh-146544: Fix `asyncio.Queue` docstring ambiguity (#146545) --- 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. """