collections Module

Module Description

Imports the contents of the collections module from the Python standard library and provides pieces which are missing in some Python implementations.

For Python 2.6 and 3.0, these missing classes are provided:

Note

The source code for the OrderedDict class comes from a recipe provided by a third party. This code or a near variant of it was included into Python 2.7 and Python 3.1 per acceptance of PEP 372.