Kaydet (Commit) a41c6913 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 7a15ba59
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment