32

You know you're fucked up when you want data that is nested inside 7 python dictionaries.

Comments
  • 3
    class DictProxy(dict):
    def __getattr__(self, item):
    i = self[item]
    if isinstance(i, dict):
    return DictProxy(i)
    return i

    not perfect but for me it is better then those annoying dictionary['abx']['cde']

    i mean: dictionary.abx.cde
  • 0
    Data-ception
Add Comment