In Python 3, how is the line zip(*(range(1000),)*1000000)
executed in less then a second even though it should have to process a lot of items?
Edit:
This question has been marked as a possible duplicate of Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?. While that question addresses the range
function, this question addresses the zip()
function and why is can go so quickly.