]> granicus.if.org Git - python/commitdiff
Make the maxsize constructor argument default to 0 (an unlimited queue size).
authorGuido van Rossum <guido@python.org>
Thu, 9 Sep 1999 14:54:28 +0000 (14:54 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 9 Sep 1999 14:54:28 +0000 (14:54 +0000)
Lib/Queue.py

index 79c4880491c96d815caf49f031ae4ea9160234d7..e0e969332c301e7d061bc4c3ce669091f2b6ed78 100644 (file)
@@ -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.