class A(object): __slots__ = "" def __getattribute__(self, item): pass