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

Chris Barker chris.barker at noaa.gov
Mon Nov 24 17:41:46 CET 2014


On Sat, Nov 22, 2014 at 2:57 AM, Chris Angelico <rosuav at gmail.com> wrote:

> If you have a lengthy nested chain of coroutines, and one of them
> unexpectedly raises StopIteration, is it right for something to
> quietly terminate, or should the exception bubble up and be printed to
> console?


Couldn't you have a nested pile of iterator classes as well that would
exhibit the exact same behavior?

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141124/886ff683/attachment.html>


More information about the Python-ideas mailing list