[Python-Dev] Suggested amendment to PEP 255

Armin Rigo arigo@ulb.ac.be
Wed, 20 Jun 2001 16:30:49 +0200 (MET DST)


On Wed, 20 Jun 2001, Greg Ewing wrote:
> I suggest dropping the "def" altogether and using:
>   generator foo(args):
>     ...
>     yield x
>     ...

Nice idea. We might even think about dropping the 'yield' keyword
altogether and using 'return' instead (althought I'm not quite sure it is
a good idea; I'm just suggesting it with a personal -0.5). 

A bientot,