queue module

suggest change

The queue module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between multiple threads. In Python 2 the module was named Queue.

The queue module provides these queue types:

  1. Queue
  2. LifoQueue
  3. PriorityQueue
  4. SimpleQueue, added in Python 3.7

Exceptions that can be raised:

  1. Full (queue overflow)
  2. Empty (queue underflow)
  3. ShutDown, raised on Python 3.14 when a shut-down queue is used

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents