[Python-Dev] Re: Extended Function syntax

Aahz aahz@pythoncraft.com
Thu, 30 Jan 2003 00:03:31 -0500


On Wed, Jan 29, 2003, Guido van Rossum wrote:
>
>   foo = property:
>     def get(self): ...
> 
> would end up meaning
> 
>   foo = property(thunk)
> 
> which is only a very small stretch from what property currently does
> (it would have to do a typecheck on its argument for backwards
> compatibility).

Sure.  But are you willing to put up with

foo = lambda:
    ...

;-)
-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours."  --Richard Bach