<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 4:14 PM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I propose that map.__next__ convert StopIteration raised by func to RuntimeError</blockquote></div><br>Aren't we stepping on a slippery slope here?  What about say</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">>>> def f(x, y):</div><div class="gmail_extra">...     if x > 2:</div><div class="gmail_extra">...         raise StopIteration</div><div class="gmail_extra">...     return x + y</div><div class="gmail_extra">...</div><div class="gmail_extra">>>> import itertools</div><div class="gmail_extra">>>> itertools.accumulate(range(10), f)</div><div class="gmail_extra"><itertools.accumulate object at 0x10acc0fc8></div><div class="gmail_extra">>>> list(_)</div><div class="gmail_extra">[0, 1, 3]</div></div></div>