> Are they class attributes - shared by all instances of the class or are
> they instance attributes - unique values in each instance?
all instances of the class share these attributes.



> So you have a list of all the instances of the class and modifying values.
> Since you do it on a per instance basis I assume that means the attributres
> are instance attributes(ie created inside an init method)?

yes they are created with an __init__ method

>
> > assigning values to the attributes depending on another variable
> > that will change and be the same names like the class attribute names.
>
> So the names are names of attributes not names of classes?
> In that case I think you need to use setattr()

Yes,
they are names of the attributes, and yes I am using setattr and getattr now. 
thanks you all for your great advice....

-- 
Eric Walker
EDA/CAD Engineer
Work: 208-368-2573
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to