[Python-Dev] Suggested amendment to PEP 255

Fredrik Lundh fredrik@pythonware.com
Wed, 20 Jun 2001 18:54:22 +0200


barry wrote:

> My vote is for a "generator" keyword to introduce the code block of a
> generator.  Makes perfect sense to me, and it will be a strong
> indication to anybody reading my code that something special is going
> on.  And something special /is/ going on!

agreed.

+1 on generator instead of def.

(and +0 on suspend instead of yield, but that's me)

Cheers /F