From: Gary Wright Date: 2007-04-13T11:56:51+09:00 Subject: Re: using self.attribute for writing vs reading - confusion On Apr 12, 2007, at 10:28 PM, Aryk Grosz wrote: > Why do you have to use self.books= on writer methods, but you can > simply > put books on reader method. books = [1,2,3,4] list = [5,6,7,8] Which one is a setter method and which one is an assignment to a local variable? You have to use self.books so that the parser can distinguish between a call to the setter method and a local variable assignment. This is a side effect of their being no need to declare local variables nor a sigil for local variables (like @ and $ for instance and global variables). Gary Wright