Immutability
Georg Brandl
g.brandl-nospam at gmx.net
Thu Jun 29 14:07:45 EDT 2006
Steve Holden wrote:
> Georg Brandl wrote:
>> Steve Holden wrote:
> [...]
>>
>>>Would it make sense, in the single argument case, to default the doc
>>>value to fget.__doc__ to support that use case, or should we just not
>>>create read-only properties by using property as a decorator?
>>
>>
>> This is actually already the case in 2.5.
>>
> Sorry, haven't had much time for python-checkins lately.
I didn't want to offend you, I must know since I implemented it myself ;)
> But this would
> certainly argue that the decorator form for read-only properties is
> accepted at some level.
Yes, one could argue in this direction. I will ask on python-dev whether
an official hint should be added to the documentation.
Georg
More information about the Python-list
mailing list