def __dir__(self):
        "return list of member names"
        cls_members = []
        cname = self.__class__.__name__
        if cname != 'SymbolTable' and hasattr(self, '__class__'):
            cls_members = dir(self.__class__)

        dict_keys = [key for key in self.__dict__ if key not in cls_members]

        return [key for key in cls_members + dict_keys
                if (not key.startswith('_SymbolTable_') and
                    not key.startswith('_Group_') and
                    not key.startswith('_%s_' % cname) and
                    not (key.startswith('__') and key.endswith('__')) and
                    key not in self.__private)]
dataset/ETHPy150Open xraypy/xraylarch/lib/symboltable.py/Group.__dir__/original