[Python-Dev] Re: Generator syntax

Ka-Ping Yee ping@lfw.org
Tue, 20 Mar 2001 22:14:57 -0800 (PST)


Greg Ewing <greg@cosc.canterbury.ac.nz> wrote:
> stuff, I think it would read better if the suspending
> statement were
> 
>    yield x
> 
> rather than
> 
>    suspend x

Fred Drake wrote:
>   I agree; this really improves readability.

Indeed, shortly after i wrote my generator examples, i wished i'd
written "generate x" rather than "suspend x".  "yield x" is good too.


-- ?!ng

Happiness comes more from loving than being loved; and often when our
affection seems wounded it is only our vanity bleeding. To love, and
to be hurt often, and to love again--this is the brave and happy life.
    -- J. E. Buchrose