Converting a flat list to a list of tuples

Fredrik Lundh fredrik at
Wed Nov 23 09:54:46 CET 2005

Bengt Richter wrote:

> >Though it looks nice, it's an implementation dependant solution. What if
> >someone changes zip to fetch the second item first?
> That would be a counter-intuitive thing to do. Most things go left->right
> in order as the default assumption.

it's not only the order that matters, but also the number of items
read from the source iterators on each iteration.


More information about the Python-list mailing list