How can I get the “old” zip() in Python3?

I migrated from Python 2.7 to Python 3.3 and zip() does not work as expected anymore.
Indeed, I read in the doc that it now returns an iterator instead of a list.

So, how I am supposed to deal with this? Can I use the “old” zip() in my Python3 code?

Find bellow the way it worked before in a Django project:

in my_zipped_list = zip(list1, list2)

in file.html: {{ my_zipped_list.0.1 }}

Maybe another solution would be to keep “new” zip() behaviour and change template instead.

Thanks for help!

Best answer

Just make a list of the result by doing list(zip(...)).