classification
Title: itertools.izip python code has a typo
Type: Stage:
Components: Documentation Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: georg.brandl, rhettinger, steven.daprano
Priority: normal Keywords:

Created on 2009-04-19 02:56 by steven.daprano, last changed 2009-04-20 18:25 by rhettinger. This issue is now closed.

Messages (2)
msg86156 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2009-04-19 02:56
In the documentation for itertools, the Python equivalent to izip has 
a typo:

yield yield tuple(map(next, iterables))

Obviously should only have a single yield.

http://docs.python.org/library/itertools.html#itertools.izip
msg86202 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-04-20 18:25
Thanks for the report.  Fixed in r71770 and r71771.
History
Date User Action Args
2009-04-20 18:25:24rhettingersetstatus: open -> closed
resolution: fixed
messages: + msg86202
2009-04-19 03:01:48rhettingersetassignee: georg.brandl -> rhettinger

nosy: + rhettinger
2009-04-19 02:56:43steven.dapranocreate