[Python-Dev] Property syntax (Re: [Python-Dev] Extended Function syntax)

Fredrik Lundh fredrik@pythonware.com
Fri, 31 Jan 2003 09:16:45 +0100


Shane wrote:

> Greg Ewing wrote:
>  >   def foo as property:
>  >     def __get__(self):
>  >       ...
>  >     def __set__(self, x):
>  >       ...
> 
> The above syntax seems to be particularly easy to read and
> understand

except that "binding-statement name1 as name2" already has a
different meaning in Python.

</F>