trying to grasp OO : newbie Q?
Kent Johnson
kent at kentsjohnson.com
Thu Apr 13 15:00:01 EDT 2006
John Salerno wrote:
> Couldn't we also say that this issue of namespace scope is a little more
> specific to Python than OOP in general? I could very easily be wrong,
> but I wouldn't want the poster to think that this is how OOP works always.
No, the confusion in the OP was between class attributes, instance
attributes and local variables. This distinction is pretty fundamental
to OOP.
Kent
More information about the Python-list
mailing list