Does altering a private member decouple the property's value?

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Wed Jun 20 08:18:08 EDT 2007


Ben Finney a écrit :
> "Ethan Kennerly" <kennerly at finegamedesign.com> writes:
> 
>> I really like properties for readonly attributes,
> 
> Python doesn't have "readonly attributes",

Err... Ever tried to set a class mro ?-)

> and to attempt to use
> properties for that purpose will only lead to confusion.

read-only attributes actually are one of the common use-case for properties.




More information about the Python-list mailing list