colour_hdri.vivification#
- colour_hdri.vivification() defaultdict [source]#
Implement supports for vivification of the underlying dict like data-structure, magical!
- Return type:
defaultdict
Examples
>>> vivified = vivification() >>> vivified["my"]["attribute"] = 1 >>> vivified["my"] defaultdict(<function vivification at 0x...>, {u'attribute': 1}) >>> vivified["my"]["attribute"] 1