Message307805
If the nested loop is the issue the Python 3 version behaves as expected.
A difference between python2 and python3 is that the zip() builtin returns a list on python2 and an iterator on python3. This explains the difference in results in running the code on the two versions.
To get the same behaviour on Python 2 and Python 3 use "list(zip(j, k))". |
|
Date |
User |
Action |
Args |
2017-12-07 14:29:48 | ronaldoussoren | set | recipients:
+ ronaldoussoren, steven.daprano, Vishu Viswanathan |
2017-12-07 14:29:48 | ronaldoussoren | set | messageid: <1512656988.49.0.213398074469.issue32242@psf.upfronthosting.co.za> |
2017-12-07 14:29:48 | ronaldoussoren | link | issue32242 messages |
2017-12-07 14:29:48 | ronaldoussoren | create | |
|