'Checks for both __getattr__ and __getattribute__ methods'

def _check_getattr(self, inst):

    name = compiled.create(self._evaluator, self._string_name)
    names = (inst.get_function_slot_names('__getattr__') or inst.get_function_slot_names('__getattribute__'))
    return inst.execute_function_slots(names, name)
