Message307806
In Python 2 zip() returns a list. In Python 3 it returns an iterator (like itertools.izip() in Python 2). This is an intentional change. For restoring the Python 2 behavior you should wrap the result of zip() into list(): z = list(zip(j, k)). The 2to3 command can do this for you. |
|
Date |
User |
Action |
Args |
2017-12-07 14:32:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ronaldoussoren, steven.daprano, Vishu Viswanathan |
2017-12-07 14:32:28 | serhiy.storchaka | set | messageid: <1512657148.16.0.213398074469.issue32242@psf.upfronthosting.co.za> |
2017-12-07 14:32:28 | serhiy.storchaka | link | issue32242 messages |
2017-12-07 14:32:28 | serhiy.storchaka | create | |
|