[Python-ideas] Async API
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Oct 28 01:52:40 CEST 2012
Yury Selivanov wrote:
> But now I'm not sure this approach will work with yield-froms.
> As when you yield-fromming scheduler knows nothing about the chain of
> generators, as it's all hidden in the yield-from implementation.
I think this just means that the implementation would involve
more than looking at a single bit. Something like an in_finally()
method that looks along the yield-from chain and returns true if
any of the generators are in a finally section.
--
Greg
More information about the Python-ideas
mailing list