

def _indexes(self):

    def get_val(name):
        attr = getattr(self, name, None)
        while callable(attr):
            attr = attr()
        return attr
    return dict([(name, get_val(name)) for name in self.__class__.index_names()])

dataset/ETHPy150Open memphis-iis/GLUDB/gludb/simple.py _indexes/original