Issue
When is it better to use zip
instead of itertools.izip
?
Solution
When you know you'll want the full list of items constructed (for instance, for passing to a function that would modify that list in-place). Or when you want to force the arguments you're passing to zip()
to be completely evaluated at that specific point.
Answered By - Amber
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.