Re: setattr vs readonly property

2007-09-12 Thread David
> My main purpose for using setattr(object, attr, value) for assign > values from a dict that has some keys that may not be present on some > object's attibute, which makes it work for me. My problem is dealing > with read only attribute like sample_attribute = > property(f_get=_get_sample_attribut

Re: setattr vs readonly property

2007-09-12 Thread Diez B. Roggisch
james_027 wrote: > hi, > > My main purpose for using setattr(object, attr, value) for assign > values from a dict that has some keys that may not be present on some > object's attibute, which makes it work for me. My problem is dealing > with read only attribute like sample_attribute = > property