Setting a read-only attribute

Wildemar Wildenburger lasses_weil at klapptsowieso.net
Thu Aug 30 18:03:38 EDT 2007


Arnaud Delobelle wrote:
> On Aug 30, 10:35 pm, "tleeuwenb... at gmail.com" <tleeuwenb... at gmail.com>
> wrote:
>> I have an object and wish to set an attribute on it which,
>> unfortunately for me, is read-only.
> 
> If it's read-only then you can't set it!
> 
>> How can I go about this?
> 
> Joke aside, I think you need to be more specific.
> 
To be more specific about much more specific you should be:
If you know the exact problem/hurdle you have to overcome, explain it. 
Otherwise kindly provide the traceback (error message) you get when 
attempting to set the attribute.

/W



More information about the Python-list mailing list