<div dir="ltr">Hi Adam,<br>Thanks for the report. I have opened issue 13003 (<a href="http://bugs.python.org/issue13003">http://bugs.python.org/issue13003</a>) to track this.<br>Eli<br><br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 23:47, Adam Forsyth <span dir="ltr">&lt;<a href="mailto:agforsyth@gmail.com">agforsyth@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">See <a href="http://stackoverflow.com/questions/7392902/izip-longest-in-itertools-how-does-rasing-indexerror-inside-the-iterator-work" target="_blank">http://stackoverflow.com/questions/7392902/izip-longest-in-itertools-how-does-rasing-indexerror-inside-the-iterator-work</a><br>


<br>
If an IndexError is raised inside an iterator in the &quot;equivalent&quot; code<br>
from the docs, the generator stops and the error is swallowed.<br>
<br>
If an IndexError is raised inside an iterator in the<br>
&quot;izip_longest_next&quot; code in CPython&#39;s &quot;Modules/itertoolsmodule.c&quot;, the<br>
generator stops and the error propagates.<br>
_______________________________________________<br>
docs mailing list<br>
<a href="mailto:docs@python.org">docs@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/docs" target="_blank">http://mail.python.org/mailman/listinfo/docs</a><br>
</blockquote></div><br></div>