Jason R. Coombs <jar...@jaraco.com> added the comment:

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]))))

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12666>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to