TwoLayerDict
Methods
structs.TwoLayerDict.__init__(self, value = None)
special
A class for a forced two layer indexing dictionnary. Usefull to access config files with section param value architecture and read-write to them seamlessly from this python object as if it was only a nested dictionnary. Based on sdict and inheriting from it's indexation abilities.
Parameters
value : TYPE, optional DESCRIPTION. The default is None.
Returns
None.
Timothe Jost - 2021
structs.TwoLayerDict.get(self, outer, inner, default = None)
Return the value for key if key is in the dictionary, else default.
structs.TwoLayerDict.update(self, value)
D.update([E, ]**F) -> None. Update D from dict/iterable E and F. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]