Setting a read-only attribute

Gerardo Herzig gherzig at fmed.uba.ar
Fri Aug 31 00:43:39 CEST 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