[Python-Dev] Extended Function syntax

Guido van Rossum guido@python.org
Thu, 30 Jan 2003 08:00:59 -0500


> There's something odd about writing
> 
> def property foo:
>     ...
> 
> Both of
> 
> defprop foo:
>     ...
> 
> or 
> 
> define property foo:
>     ...
> 
> seem more natural.
> 
> def foo [property]:
>     ...
> 
> anyone?  Probably relying on the difference between [ and ( kills it.

Yes.

How about

  foo = property:
      ...

--Guido van Rossum (home page: http://www.python.org/~guido/)