Message118027
The code was taken from the itertools.izip documentation for Python 2, where it did work.
In Python 2, next() raises StopIteration which is propagated up and causes the izip() to stop. In Python 3, map is itself a generator and the StopIteration terminates the map operation instead of terminating the zip operation. |
|
Date |
User |
Action |
Args |
2010-10-05 18:51:58 | stutzbach | set | recipients:
+ stutzbach, loewis, rhettinger, belopolsky, docs@python, max |
2010-10-05 18:51:58 | stutzbach | set | messageid: <1286304718.38.0.0553177581032.issue10029@psf.upfronthosting.co.za> |
2010-10-05 18:51:56 | stutzbach | link | issue10029 messages |
2010-10-05 18:51:56 | stutzbach | create | |
|