27 Oct
2012
27 Oct
'12
4:52 p.m.
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