colour.utilities.Structure¶
- class colour.utilities.Structure(*args, **kwargs)[source]¶
Bases:
dict
Defines a dict-like object allowing to access key values using dot syntax.
Methods
References
[]
Examples
>>> person = Structure(first_name='John', last_name='Doe', gender='male') >>> # Doctests skip for Python 2.x compatibility. >>> person.first_name 'John' >>> sorted(person.keys()) ['first_name', 'gender', 'last_name'] >>> # Doctests skip for Python 2.x compatibility. >>> person['gender'] 'male'
- __weakref__¶
list of weak references to the object (if defined)