On Sun, Oct 23, 2011 at 11:06 PM, Marc Tompkins <marc.tompk...@gmail.com>wrote:
> Things to remember: > -you can get a value from a method, but you can't assign to it: > variable = object.method() > but NOT > object.method() = variable > As a slight aside, you _can_ assign to the method name: object.method = variable #object.method is now whatever variable was I'm not aware of any valid reason to do this, that is to say I don't know of anything that you could do this way that you couldn't do another more readable/maintainable way. But I could be wrong! HTH, -Wayne
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor