![](https://secure.gravatar.com/avatar/72ee673975357d43d79069ac1cd6abda.jpg?s=120&d=mm&r=g)
Oct. 29, 2011
6:16 a.m.
Nick Coghlan wrote:
This means that, whenever a generator yields, that stack needs to be unwound, suspending each affected generator in turn, strung together by references between the generator objects rather than remaining a true frame stack.
The chain of generator frames that results from nested yield-from calls *is* a stack of frames -- it's just linked in the opposite order from the way frames are usually arranged. The "top" of the stack is at the tail, making it slightly less convenient to get to, but that's just an issue of implementation efficiency. -- Greg