def __getattr__(self, key):
        try:
            result = self[key]
        except KeyError:
            raise AttributeError(key)
        else:
            return result
Get an attr by calling :meth:`dict.__getitem__`.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/ipstruct.py/Struct.__getattr__