mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
Make the maxsize constructor argument default to 0 (an unlimited queue size).
This commit is contained in:
parent
7a15ba595a
commit
a41c691371
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ except TypeError:
|
||||||
Full = 'Queue.Full'
|
Full = 'Queue.Full'
|
||||||
|
|
||||||
class Queue:
|
class Queue:
|
||||||
def __init__(self, maxsize):
|
def __init__(self, maxsize=0):
|
||||||
"""Initialize a queue object with a given maximum size.
|
"""Initialize a queue object with a given maximum size.
|
||||||
|
|
||||||
If maxsize is <= 0, the queue size is infinite.
|
If maxsize is <= 0, the queue size is infinite.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue