mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
The usual...
This commit is contained in:
parent
0b095bc092
commit
aad6761cce
56 changed files with 5040 additions and 656 deletions
|
@ -1,4 +1,4 @@
|
|||
# A multi-producer, multi-consumer queue.
|
||||
"""A multi-producer, multi-consumer queue."""
|
||||
|
||||
# define this exception to be compatible with Python 1.5's class
|
||||
# exceptions, but also when -X option is used.
|
||||
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue