blueoil.utils.smartdict Module Contents Classes


dict() -> new empty dictionary

class blueoil.utils.smartdict.SmartDict(d=None, **kwargs)

Bases: dict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

update(self, d=None, **kwargs)

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]

__setitem__(self, name, value)

Set self[key] to value.

__getattr__(self, name)
__setattr__(self, name, value)

Implement setattr(self, name, value).


__dir__() -> list default dir() implementation