mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Make the maxsize constructor argument default to 0 (an unlimited queue size).
This commit is contained in:
parent
7a15ba595a
commit
a41c691371
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user