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 max
Recipients docs@python, max
Date 2010-10-05.18:26:44
SpamBayes Score 0.011516328
Marked as misclassified No
Message-id <1286303206.24.0.0440700795071.issue10029@psf.upfronthosting.co.za>
In-reply-to
Content
The sample code explaining zip function is incorrect at http://docs.python.org/py3k/library/functions.html?highlight=zip#zip:

def zip(*iterables):
    # zip('ABCD', 'xy') --> Ax By
    iterables = map(iter, iterables)
    while iterables:
        yield tuple(map(next, iterables))

See http://stackoverflow.com/questions/3865640/understanding-zip-function for discussion.
History
Date User Action Args
2010-10-05 18:26:46maxsetrecipients: + max, docs@python
2010-10-05 18:26:46maxsetmessageid: <1286303206.24.0.0440700795071.issue10029@psf.upfronthosting.co.za>
2010-10-05 18:26:45maxlinkissue10029 messages
2010-10-05 18:26:44maxcreate