[Python-Dev] Re: A syntax for function attributes?
01 Aug 2003 08:37:48 -0400
On Thu, 2003-07-31 at 20:26, Greg Ewing wrote:
> I agree. We should *not* try to shoehorn properties into the
> function modifier syntax, as the resulting contortions would
> be at least as bad as what we have now, and probably worse!
Agreed, although I'll point out that properties are only one type of
descriptor. I have an application which uses non-data descriptors (i.e.
define __get__() only) all over the place, and this syntactic extension
would definitely clean that code up.