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

Michael Hudson mwh@python.net
Fri, 31 Jan 2003 16:21:38 +0000


David Goodger <goodger@python.org> writes:

> This syntax could be used to remove a recent wart, making generators
> explicit:
>
>     def g as generator:
>         suite
>
> Of course, it would be a syntax error if the generator suite didn't
> contain a "yield" statement.

You have to talk faster than that to convince me this is a wart.

Cheers,
M.

-- 
  Finding a needle in a haystack is a lot easier if you burn down
  the haystack and scan the ashes with a metal detector.
      -- the Silicon Valley Tarot (another one nicked from David Rush)