def __getitem__(self,key):
        try:
            lazy = super(Document,self).__getattribute__('_lazy')
        except AttributeError:
            lazy = False
        if lazy:
            if key in self.lazy_attributes:
                return self.lazy_attributes[key]
            elif self._autoload:
                self.revert()
        return self.attributes[key]
dataset/ETHPy150Open adewes/blitzdb/blitzdb/document.py/Document.__getitem__/original