15 Oct
2012
15 Oct
'12
8:20 p.m.
On Tue, Oct 16, 2012 at 12:16 AM, Calvin Spealman
I'm still -1 on delegating control to subgenerators with yield-from, versus having the scheduler just deal with them directly. I think it is far less flexible.
Um, yield from is to generators as calls are to functions... delegating to subgenerators, regardless of context, is what it's *for*. Without it, the scheduler will have to do quite a bit of extra work to reconstruct sane stack traces. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia