Converting a flat list to a list of tuples
Fredrik Lundh
fredrik at pythonware.com
Wed Nov 23 03:54:46 EST 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.
</F>
More information about the Python-list
mailing list