queue
Stdlib — DataPython 2.0+Intermediate
Thread-safe FIFO, LIFO, and priority queues
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import queue print(f"Module: queue") print(f"Contents: {dir(queue)[:10]}")
The queue module is part of Python's standard library. Thread-safe FIFO, LIFO, and priority queues.
Try in PlaygroundTags
stdlibdata-structure