trying to grasp OO : newbie Q?

Wildemar Wildenburger wildemar at freakmail.de
Thu Apr 13 11:05:50 EDT 2006


J Rice wrote:
> Someone should correct me if I'm wrong but:
> If
> you want to change myVar for the whole class, you need to reference it
> as self.myVar.
>   
wrong: If you want to change myVar for the whole *class*, you need to 
reference it as Obj.myVar (prefix with classname).
self.myVar will change it for that one instance only.

other than that, agreed :)
wildemar



More information about the Python-list mailing list