[Tutor] classproperty: readonly and inheritance - not more needed

Thomas Güttler guettliml at thomas-guettler.de
Mon Apr 24 05:23:16 EDT 2017


>
> Now the "not read-only" part:
>
>>>> Foo.my_prop = "whatever"
>>>> Foo.my_prop
> 'whatever'
>
> You now have a string attribute, the property is lost. Methods behave the
> same way and it's generally not a problem, but you should at least be aware
> of this behaviour.

Yes, now I understand you. Thank you

Regards,
   Thomas Güttler


-- 
Thomas Guettler http://www.thomas-guettler.de/


More information about the Tutor mailing list