watcher.common.utils
Utilities and helper functions.
watcher.common.utils.
Struct
Bases: dict
dict
Specialized dict where you access an item like an attribute
>>> struct = Struct() >>> struct['a'] = 1 >>> struct.b = 2 >>> assert struct.a == 1 >>> assert struct['b'] == 2
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.