class documentation
class DerivedDictBase(abc.MutableMapping):
Known subclasses: cma.utilities.utils.SolutionDict
Constructor: DerivedDictBase(*args, **kwargs)
for conveniently adding methods/functionality to a dictionary.
The actual dictionary is in self.data. Derive from this class and copy-paste and modify setitem, getitem, and delitem, if necessary.
Details: This is the clean way to subclass the build-in dict, however
it depends on MutableMapping
.
Method | __contains__ |
Undocumented |
Method | __delitem__ |
Undocumented |
Method | __getitem__ |
define access self[key] |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __setitem__ |
define self[key] = value |
Instance Variable | data |
Undocumented |