class A: @property def test(self): raise AttributeError('property') def __getattr__(self, name): raise AttributeError(name) A().test