

def __getattr__(self, key):
    'getattr aliased to getitem'
    if (key in iter(self.keys())):
        return self[key]
    else:
        raise AttributeError(key)

dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py Metadata.__getattr__/original