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

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 22 Mar 2001 13:39:05 +1200 (NZST)


Fredrik Lundh <fredrik@effbot.org>:

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

Well, this flavour of generators is sort of a special case
subset of non-preemptive threading, so the usage is not
entirely inconsistent.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+