On 2015-5-12 18:39, Phoenix wrote:
So is functionally izip exactly the same as zip but faster?

NO.

zip() builds a list, an object that takes up space proportional to the number of entries.

itertools.izip() makes an iterator: a function that generates the items that would be in the list, but one by one as needed (see "yield"), never saving them; the speed advantage is in the absence of memory management.

You can do some listlike things with the output of izip(), but not all; you can't concatenate it or sort it, for example.

--
*\\*  Anton Sherwood  *\\*  www.bendwavy.org

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to