Message141471
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])))) |
|
| Date |
User |
Action |
Args |
| 2011-07-31 16:02:30 | jason.coombs | set | recipients:
+ jason.coombs, docs@python |
| 2011-07-31 16:02:30 | jason.coombs | set | messageid: <1312128150.45.0.556046543619.issue12666@psf.upfronthosting.co.za> |
| 2011-07-31 16:02:29 | jason.coombs | link | issue12666 messages |
| 2011-07-31 16:02:29 | jason.coombs | create | |
|