This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients docs@python, eli.bendersky
Date 2011-09-18.04:55:22
SpamBayes Score 0.0071274186
Marked as misclassified No
Message-id <1316321723.69.0.619993124857.issue13003@psf.upfronthosting.co.za>
In-reply-to
Content
Regarding the sample code in: http://docs.python.org/library/itertools#itertools.izip_longest

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.

---

Reported by Adam Forsyth on the docs mailing list. More details in this SO discussion: http://stackoverflow.com/questions/7392902/izip-longest-in-itertools-how-does-rasing-indexerror-inside-the-iterator-work
History
Date User Action Args
2011-09-18 04:55:23eli.benderskysetrecipients: + eli.bendersky, docs@python
2011-09-18 04:55:23eli.benderskysetmessageid: <1316321723.69.0.619993124857.issue13003@psf.upfronthosting.co.za>
2011-09-18 04:55:23eli.benderskylinkissue13003 messages
2011-09-18 04:55:22eli.benderskycreate