In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: > >Note: if lists are long take a look at itertools izip. zip creates >a list of lists which could take lots of memory/time if they are VERY >large. itertools izip iterates over them in place.
That's half-true -- while izip is faster, it's not enough faster to make a significant difference unless the lists are "huge" rather than "large". Remember that the data elements themselves are not copied. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "I disrespectfully agree." --SJM -- http://mail.python.org/mailman/listinfo/python-list