Generators versus Coroutines

Paul Rubin http
Sat Aug 21 18:11:18 CEST 2004

Bryan Olson <fakeaddress at> writes:
>  > Your arguments in favour of co-routines for servers all hold (IME) for
>  > generators as well. There is _slight_ extra obfuscation, but nowhere near
>  > the level of change required for event processing.
> Ah, so it seems we agree that generators result in more obfuscation
> than co-routines, but in your experience the difference is slight.
> My experience is much different, and I was trying to illustrate why
> that is, so readers wouldn't have to rely just on my say-so.

There's another issue, which is I think Michael may be talking about a
more powerful type of generator than the kind built into normal
Python.  But I'm not sure of that.

More information about the Python-list mailing list