searching a list of tuples
Marcus Stojek
stojek at part-gmbh.de
Wed Feb 13 13:15:19 EST 2002
Hi,
I have a (huge) list of tuples :
list=(float 1,float 2,float 3,int).
The list has been sorted with list.sort()
Now I have to slice the list in a way
that:
a <= float 1 <= b
As I have to do this very often for different
values of a and b and the list is quite large
(100.000 tuples) I would like to do the slicing
as fast as possible.
Can anybody help me?
Tanks
Marcus
More information about the Python-list
mailing list