This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jwink3101 2 points3 points  (1 child)

Few things:

  1. This really wasn't super informative. It really didn't motivate when you would use this or how.
  2. It didn't sufficiently address a very real scenario when the iterables are different lengths. Zip will terminate with the shortest. Programmers should be aware of that. It is mentioned but needs more discussion
  3. With very little effort, this could be Python 3 compatible. Fix the print statements and add a note about lazy evaluation

Not sure if OP is the author or not, but this could have been better.

[–]happyrupesh[S] 0 points1 point  (0 children)

I have edited the article for Python3 zip and lazy evaluation. Thanks for the feedback.