[docs] Bug in equivalent code for itertools.izip_longest

Eli Bendersky eliben at gmail.com
Sun Sep 18 06:56:31 CEST 2011


Hi Adam,
Thanks for the report. I have opened issue 13003 (
http://bugs.python.org/issue13003) to track this.
Eli


On Mon, Sep 12, 2011 at 23:47, Adam Forsyth <agforsyth at gmail.com> wrote:

> See
> http://stackoverflow.com/questions/7392902/izip-longest-in-itertools-how-does-rasing-indexerror-inside-the-iterator-work
>
> If an IndexError is raised inside an iterator in the "equivalent" code
> from the docs, the generator stops and the error is swallowed.
>
> If an IndexError is raised inside an iterator in the
> "izip_longest_next" code in CPython's "Modules/itertoolsmodule.c", the
> generator stops and the error propagates.
> _______________________________________________
> docs mailing list
> docs at python.org
> http://mail.python.org/mailman/listinfo/docs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110918/b0d3db2e/attachment.html>


More information about the docs mailing list