The Queue Module
The Queue
module supplies first-in, first-out (FIFO) queues that support multithread access, with one main class and two exception classes.
Queue |
|
Empty |
|
Full |
|
Methods of Queue Instances
An instance q
of class Queue
supplies the following methods.
empty |
Returns |
full |
Returns |
get, get_nowait |
When |
Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.