class A(object): @property def x(self): "Does things to X" return 1 @x.setter def x(self, v): "Sets X" self.__x = v A().x = 1