mass.util.dict_with_id
DictWithID and OrderedDictWithID are dictionaries with identifers attributes.
The dict_with_id
submodule utilizes the built-in type
to
dynamically create the DictWithID
and OrderedDictWithID
classes based on whether the parent class should be a standard dict
or an OrderedDict
, therefore allowing each object to
inherit its parent class methods and generable behavior.
The DictWithID
and OrderedDictWithID
classes are primarily
used for in order to use dictionaries with the speciailized
DictList
container for both performance gains
and user convenience.
Module Contents
- mass.util.dict_with_id.OrderedDictWithID[source]
Has ID attribute, inherits
OrderedDict
methods.- Type
class