| |
- __init__(self, maxsize)
- Initialize a queue object with a given maximum size.
- If maxsize is <= 0, the queue size is infinite.
- _empty(self)
- # Check wheter the queue is empty
- _full(self)
- # Check whether the queue is full
- _get(self)
- # Get an item from the queue
- _init(self, maxsize)
- # Initialize the queue representation
- _put(self, item)
- # Put a new item in the queue
- _qsize(self)
- no doc string
- empty(self)
- Return 1 if the queue is empty, 0 otherwise (not reliable!).
- full(self)
- Return 1 if the queue is full, 0 otherwise (not reliable!).
- get(self, block=1)
- Remove and return an item from the queue.
- If optional arg 'block' is 1 (the default), block if
- necessary until an item is available. Otherwise (block is 0),
- return an item if one is immediately available, else raise the
- Empty exception.
- get_nowait(self)
- Remove and return an item from the queue without blocking.
- Only get an item if one is immediately available. Otherwise
- raise the Empty exception.
- put(self, item, block=1)
- Put an item into the queue.
- If optional arg 'block' is 1 (the default), block if
- necessary until a free slot is available. Otherwise (block
- is 0), put an item on the queue if a free slot is immediately
- available, else raise the Full exception.
- put_nowait(self, item)
- Put an item into the queue without blocking.
- Only enqueue the item if a free slot is immediately available.
- Otherwise raise the Full exception.
- qsize(self)
- Return the approximate size of the queue (not reliable!).
|