[Python-ideas] yield from multiple iterables (was Re: The async API of the future: yield-from)
Nick Coghlan
ncoghlan at gmail.com
Tue Oct 16 03:49:01 CEST 2012
On Tue, Oct 16, 2012 at 10:44 AM, Greg Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> My original implementation of yield-from actually *did* avoid
> this, by keeping a C-level pointer chain of yielding-from frames.
> But that part was ripped out at the last minute when someone
> discovered that it had a detrimental effect on tracebacks.
>
> There are probably other ways the traceback problem could be
> fixed, so maybe we will get this optimisation back one day.
Ah, I thought I remembered something along those lines. IIRC, it was a
bug report on one of the alphas that prompted us to change it.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list