[Python-ideas] Async API
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Oct 28 06:55:52 CET 2012
Yury Selivanov wrote:
> In the above example scheduler *can* safely interrupt "c2" when it
> is invoked from "c1" at "p2". I.e. scheduler can't interrupt the
> coroutine when it is itself in its finally statement, but it's fine
> to interrupt it when it is not, even if it is invoked from other
> coroutine's finally block.
I'm confused about the relationship between c1 and c2 here, and
what you mean by one coroutine "invoking" another.
Can you post a version that uses yield-from instead of yielding
objects with unknown (to me) semantics?
--
Greg
More information about the Python-ideas
mailing list