Generator syntax (Re: FW: FW: [Python-Dev] Simple generator implementation)

Fredrik Lundh fredrik@effbot.org
Wed, 21 Mar 2001 08:26:26 +0100


the real fred wrote:

> I agree; this really improves readability.  I'm sure someone
> knows of precedence for the "suspend" keyword

Icon

(the suspend keyword "leaves the generating function
in suspension")

> but the only one I recall seeing before is "yeild" (Sather).

I associate "yield" with non-preemptive threading (yield
to anyone else, not necessarily my caller).

Cheers /F