[Python-ideas] Assignment decorators (Re: The Descriptor Protocol...)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 4 07:00:35 CET 2011

I wrote:

> So I guess what you're saying is that we need to find two more
> use cases?

...and it's just occurred to me that there are two use cases
*already in the language*: classes and functions are two things
for which it is very handy for them to know the name they're
initially bound to. My overridable_property is a third, and
named tuples are a fourth if you allow them.


More information about the Python-ideas mailing list