-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed as not planned
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Hello, in the Asyncio Queue class the maxsize
argument is not being used, so it seems to always create an unbounded queue.
If it is a bug, the solution is very simple: self._queue = collections.deque(maxsize)
Current implementation:
https://github.com/python/cpython/blob/e68d4b08ff13a06a2c2877f63bf856e6bf3c2e77/Lib/asyncio/queues.py#L33C1-L61C42
CPython versions tested on:
3.12
Operating systems tested on:
Windows
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done