[Python-Dev] problem with recursive "yield from" delegation

Benjamin Peterson benjamin at python.org
Thu Mar 8 00:01:07 CET 2012


2012/3/7 Stefan Behnel <stefan_ml at behnel.de>:
> The problem is in steps 5) and 6), which are handled by g1 at the wrong
> call level. They shouldn't lead to undelegation and termination in g1, just
> to an exception being raised in g2.

That looks wrong indeed.

>
> I ran into this while trying to adapt the implementation for Cython, which
> has a different generator type implementation but otherwise uses more or
> less the same code now. But I'm not sure how to fix this one without major
> changes to the implementation

Cython's or CPython's implementation?


-- 
Regards,
Benjamin


More information about the Python-Dev mailing list