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 ethan.furman
Recipients Paddy McCarthy, docs@python, ethan.furman
Date 2015-03-18.01:00:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426640403.89.0.670598704095.issue23695@psf.upfronthosting.co.za>
In-reply-to
Content
I think an example should suffice:

>>> s = [1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> n = 3
>>> zip(*[iter(s)]*n)
[(1, 2, 3), (4, 5, 6), (7, 8, 9)]
History
Date User Action Args
2015-03-18 01:00:03ethan.furmansetrecipients: + ethan.furman, docs@python, Paddy McCarthy
2015-03-18 01:00:03ethan.furmansetmessageid: <1426640403.89.0.670598704095.issue23695@psf.upfronthosting.co.za>
2015-03-18 01:00:03ethan.furmanlinkissue23695 messages
2015-03-18 01:00:03ethan.furmancreate