summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-09-09 14:54:28 (GMT)
committerGuido van Rossum <guido@python.org>1999-09-09 14:54:28 (GMT)
commita41c691371db36bc4868f08b71d617a78280b240 (patch)
treeae175265eab5d801ccbb26596733fb49cd99159f
parent7a15ba595ade7de97d395b297e6cea6f5ff5c60c (diff)
downloadcpython-a41c691371db36bc4868f08b71d617a78280b240.zip
cpython-a41c691371db36bc4868f08b71d617a78280b240.tar.gz
cpython-a41c691371db36bc4868f08b71d617a78280b240.tar.bz2
Make the maxsize constructor argument default to 0 (an unlimited queue size).
-rw-r--r--Lib/Queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/Queue.py b/Lib/Queue.py
index 79c4880..e0e9693 100644
--- a/Lib/Queue.py
+++ b/Lib/Queue.py
@@ -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.