Mercurial > cpython-lru_cache-weakref
diff Lib/Queue.py @ 11267:2b26e48a85a6 legacy-trunk
Make the maxsize constructor argument default to 0 (an unlimited queue size).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 09 Sep 1999 14:54:28 +0000 |
| parents | 5b15642e7bdf |
| children | e34991022571 |
line wrap: on
line diff
--- a/Lib/Queue.py Thu Sep 09 14:21:52 1999 +0000 +++ b/Lib/Queue.py Thu Sep 09 14:54:28 1999 +0000 @@ -15,7 +15,7 @@ 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.
