Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
setattr vs readonly property
 

Index | Next | Previous | View Flat


cai.haibin at gmail

Sep 12, 2007, 2:07 AM


Views: 67
Permalink
setattr vs readonly property

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(f_get=_get_sample_attribute). what approach should I use? Or
is my first approach In the first place right?

Thanks
james

--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
setattr vs readonly property cai.haibin at gmail Sep 12, 2007, 2:07 AM
    Re: setattr vs readonly property deets at nospam Sep 12, 2007, 2:16 AM
    Re: setattr vs readonly property wizzardx at gmail Sep 12, 2007, 3:05 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.