Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a41c691

Browse files
committed
Make the maxsize constructor argument default to 0 (an unlimited queue size).
1 parent 7a15ba5 commit a41c691

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/Queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Full(Exception):
1515
Full = 'Queue.Full'
1616

1717
class Queue:
18-
def __init__(self, maxsize):
18+
def __init__(self, maxsize=0):
1919
"""Initialize a queue object with a given maximum size.
2020
2121
If maxsize is <= 0, the queue size is infinite.

0 commit comments

Comments
 (0)