Using Python property() inside a method
问题 Assuming you know about Python builtin property: http://docs.python.org/library/functions.html#property I want to re-set a object property in this way but, I need to do it inside a method to be able to pass to it some arguments, currently all the web examples of property() are defining the property outside the methods, and trying the obvious... def alpha(self, beta): self.x = property(beta) ...seems not to work, I'm glad if you can show me my concept error or other alternative solutions