[docs] [issue12666] map semantic change not documented in What's New

Jason R. Coombs report at bugs.python.org
Sun Jul 31 18:02:30 CEST 2011


Jason R. Coombs <jaraco at 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 <report at bugs.python.org>
<http://bugs.python.org/issue12666>
_______________________________________


More information about the docs mailing list