diff options
author | Guido van Rossum <guido@python.org> | 1999-09-09 14:54:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-09-09 14:54:28 (GMT) |
commit | a41c691371db36bc4868f08b71d617a78280b240 (patch) | |
tree | ae175265eab5d801ccbb26596733fb49cd99159f /Lib/Queue.py | |
parent | 7a15ba595ade7de97d395b297e6cea6f5ff5c60c (diff) | |
download | cpython-a41c691371db36bc4868f08b71d617a78280b240.zip cpython-a41c691371db36bc4868f08b71d617a78280b240.tar.gz cpython-a41c691371db36bc4868f08b71d617a78280b240.tar.bz2 |
Make the maxsize constructor argument default to 0 (an unlimited queue size).
Diffstat (limited to 'Lib/Queue.py')
-rw-r--r-- | Lib/Queue.py | 2 |
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. |