This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Vishu Viswanathan, ronaldoussoren, steven.daprano
Date 2017-12-07.14:29:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512656988.49.0.213398074469.issue32242@psf.upfronthosting.co.za>
In-reply-to
Content
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))".
History
Date User Action Args
2017-12-07 14:29:48ronaldoussorensetrecipients: + ronaldoussoren, steven.daprano, Vishu Viswanathan
2017-12-07 14:29:48ronaldoussorensetmessageid: <1512656988.49.0.213398074469.issue32242@psf.upfronthosting.co.za>
2017-12-07 14:29:48ronaldoussorenlinkissue32242 messages
2017-12-07 14:29:48ronaldoussorencreate