From a41c691371db36bc4868f08b71d617a78280b240 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 9 Sep 1999 14:54:28 +0000 Subject: [PATCH] Make the maxsize constructor argument default to 0 (an unlimited queue size). --- Lib/Queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/Queue.py b/Lib/Queue.py index 79c4880491c9..e0e969332c30 100644 --- a/Lib/Queue.py +++ b/Lib/Queue.py @@ -15,7 +15,7 @@ except TypeError: Full = 'Queue.Full' class Queue: - def __init__(self, maxsize): + def __init__(self, maxsize=0): """Initialize a queue object with a given maximum size. If maxsize is <= 0, the queue size is infinite. -- 2.47.3