Setting a read-only attribute

Gerardo Herzig gherzig at fmed.uba.ar
Thu Aug 30 18:43:39 EDT 2007


tleeuwenburg at gmail.com 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?
>
>Cheers.
>-T
>
>  
>
I guess we all need an code example to show us the way 'read only' is 
implemented.
If you cant access to the class wich you are instantiated from, well, 
maybe you can just post the error or exception you get.

Cheers.
Gerardo



More information about the Python-list mailing list