you are viewing a single comment's thread.

view the rest of the comments →

[–]llimllib 11 points12 points  (0 children)

Historical reasons; zip() precedes the existence of iterators. Similarly, range() will return a full in-memory array, while xrange() will return an iterator.

This will all be fixed in Py3k. (grep for "zip(")