bisect on a list of lists

Paulo da Silva psdasilvaX at esotericaX.ptX
Fri Mar 9 15:15:44 EST 2007


Hi!

What is the best way to have something like the bisect_left
method on a list of lists being the comparision based on an
specified arbitrary i_th element of each list element?

Is there, for lists, something equivalent to the __cmp__ function for
classes?

Thanks.



More information about the Python-list mailing list