class A(object): @property def x(self): "Does things to X" return 1 a = A() a.x