[issue13003] Bug in equivalent code for itertools.izip_longest

2011-12-01 Thread Eli Bendersky
Eli Bendersky added the comment: Yep, it appears that Raymond has fixed this in changeset b0065b9087ef -- resolution: wont fix -> fixed ___ Python tracker ___ __

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-12-01 Thread Adam Forsyth
Adam Forsyth added the comment: This is marked as "wont fix" but has been fixed, the resolution should be changed. -- nosy: +agforsyth ___ Python tracker ___ __

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: Well, this is for Raymond to decide. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Eli Bendersky
Eli Bendersky added the comment: What about at least documenting it? Since a real user ran into this and reported it as a problem, I think it would make sense to make the discrepancy explicit. Alternatively a generalized note can be added to the documentation of itertools stating that the "e

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Georg Brandl
Georg Brandl added the comment: I had forwarded this to Raymond, and he replied: The itertools module code is correct. The "equivalent" is only approximately correct I don't consider it to be a bug -- it is an implementation detail in an illustration. -- nosy: +georg.brandl resolutio

[issue13003] Bug in equivalent code for itertools.izip_longest

2011-09-17 Thread Eli Bendersky
New submission from Eli Bendersky : 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 ins