Sorting a list depending of the indexes of another sorted list
Santiago Romero
sromero at gmail.com
Mon Jan 21 05:17:37 EST 2008
Thanks all for the answers ... I'll use a tuple as you said :)
Anyway, is interesting to know how to sort 2 lists when you dont want
to use tuples, so thanks also to Peter :)
> Then one have to split the list twice.Given the list is large,it's maybe
> not good for performance.Is it a more effective split way?
Well, I just use:
rows = i.split(' ')
a = rows[3]
b = rows[5]
X-D
More information about the Python-list
mailing list