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 jaraco
Recipients docs@python, jaraco
Date 2011-07-31.16:02:29
SpamBayes Score 0.0014849652
Marked as misclassified No
Message-id <1312128150.45.0.556046543619.issue12666@psf.upfronthosting.co.za>
In-reply-to
Content
I believe the correct solution to (2) is to use itertools.zip_longest. So to port to Python 3, the example would use:

    print(list(map(to_tuple, itertools.zip_longest([1,2,3], [4,5,6,7]))))
History
Date User Action Args
2011-07-31 16:02:30jaracosetrecipients: + jaraco, docs@python
2011-07-31 16:02:30jaracosetmessageid: <1312128150.45.0.556046543619.issue12666@psf.upfronthosting.co.za>
2011-07-31 16:02:29jaracolinkissue12666 messages
2011-07-31 16:02:29jaracocreate