Re: Setting a read-only attribute



tleeuwenburg@xxxxxxxxx wrote:
I have an object and wish to set an attribute on it which,
unfortunately for me, is read-only.

How can I go about this?

This seems like a bizarre requirement. Why is the attribute read-only in the first place? How is the read-only mechanism enforced? Is the object created in Python or in an extension module? Do you have any evidence that "setting" the attribute will effect the required change in the behavior of the object.

A little more information would be helpful.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

.



Relevant Pages