Re: [Python-Dev] PEP 479: Change StopIteration handling inside generators

2014年11月25日 09:51:27 -0800

On Wed, Nov 26, 2014 at 4:45 AM, Isaac Schwabacher
<[email protected]> wrote:
> Yield can also raise StopIteration, if it's thrown in. The current 
> interaction of generator.throw(StopIteration) with yield from can't be 
> emulated under the PEP's behavior, though it's not clear that that's a 
> problem.
>
Hrm. I have *absolutely* no idea when you would use that, and how
you'd go about reworking it to fit this proposal. Do you have any
example code (production or synthetic) which throws StopIteration into
a generator?
ChrisA
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to