Make the maxsize constructor argument default to 0 (an unlimited queue size).

This commit is contained in:
Guido van Rossum 1999-09-09 14:54:28 +00:00
parent 7a15ba595a
commit a41c691371

View 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.