get_from_deep_dict¶
-
support.dicts.
get_from_deep_dict
(values, keys)¶ Extract values from a multi-depth dictionary
- Example::
In [2]: get_from_deep_dict(mydict,(0,0,0)) [(0, 0, 0)] yields a Out[2]: ‘a’ In [3]: get_from_deep_dict(mydict,(1,1,2)) [(1, 1, 2)] yields k Out[3]: ‘k’ In [4]: get_from_deep_dict(mydict,(3,1,2)) [(3, 1, 2)] yields z Out[4]: ‘z’
:param values : a dictionary of dictionaries of … :type values : dict of dict of …
- Parameters
keys (tuple) – high to low ordered keys