Generator syntax (Re: FW: FW: [Python-Dev] Simple generator implementation)
Fred L. Drake
fdrake@acm.org
Tue, 20 Mar 2001 23:58:10 -0500
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
I agree; this really improves readability. I'm sure
someone knows of precedence for the "suspend" keyword, but
the only one I recall seeing before is "yeild" (Sather).
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Digital Creations