Exscript.util.collections module

class Exscript.util.collections.OrderedDefaultDict(default_factory=None, *a, **kw)[source]

Bases: collections.OrderedDict

A fusion of Python’s defaultdict and Python’s OrderedDict.

__init__(default_factory=None, *a, **kw)[source]

Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.

copy() → a shallow copy of od[source]