From: Guido van Rossum Date: Thu, 9 Sep 1999 14:54:28 +0000 (+0000) Subject: Make the maxsize constructor argument default to 0 (an unlimited queue size). X-Git-Tag: v1.6a1~939 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a41c691371db36bc4868f08b71d617a78280b240;p=thirdparty%2FPython%2Fcpython.git Make the maxsize constructor argument default to 0 (an unlimited queue size). --- 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.