Queue.LifoQueue¶
-
class
Queue.LifoQueue(maxsize=0)[source]¶ Variant of Queue that retrieves most recently added entries first.
Methods¶
__init__([maxsize]) |
|
_get() |
|
_init(maxsize) |
|
_put(item) |
|
_qsize([len]) |
|
empty() |
Return True if the queue is empty, False otherwise (not reliable!). |
full() |
Return True if the queue is full, False otherwise (not reliable!). |
get([block, timeout]) |
Remove and return an item from the queue. |
get_nowait() |
Remove and return an item from the queue without blocking. |
join() |
Blocks until all items in the Queue have been gotten and processed. |
put(item[, block, timeout]) |
Put an item into the queue. |
put_nowait(item) |
Put an item into the queue without blocking. |
qsize() |
Return the approximate size of the queue (not reliable!). |
task_done() |
Indicate that a formerly enqueued task is complete. |