8.3. collections — High-performance container datatypes

New in version 2.4:

New in version 2.4.

This module implements high-performance container datatypes. Currently, there are two datatypes, deque and defaultdict, and one datatype factory function, namedtuple().

Changed in version 2.5:

Changed in version 2.5: Added defaultdict.