Feature request: String-inferred names

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Fri Dec 4 10:14:42 EST 2009


Ben Finney a écrit :
> Brad Harms <fearsomedragonfly at gmail.com> writes:
(snip)

>> 2.) Attributes whose values are determined or assigned dynamically by
>> indirectly calling a function (like properties and instancemethods)
> 
> Yes, the term “property” seems to do what you want.

The property type is just one possible application of the descriptor 
protocol which provides most of the support for computed attributes in 
Python, so it might be way too restrictive.

> The value of an instance method is *not* determined dynamically:

It is, actually. The function type implements the protocol descriptor, 
with the __get__ method returning an instancemethod object.




More information about the Python-list mailing list