Generators versus Coroutines
Michael Sparks
zathras at thwackety.com
Sat Aug 14 19:04:57 EDT 2004
On Sat, 14 Aug 2004, Nick Patavalis wrote:
>
> I may be mistaken, as it has been some time since I've last dealt with
> coroutines, but aren't you supposed to be able to do this with real
> coroutines?
[example]
> And when baz() yields, you're thrown back to the point where c.run()
> was called. How is this possible with generators?
I think it depends on which definition of "real" co-routines you've
heard. Hence my question. Thanks for the answer :)
Michael.
More information about the Python-list
mailing list