On Sep 28, 12:30 pm, xkenneth <[EMAIL PROTECTED]> wrote: > Looking to do something similair. I'm working with alot of timestamps > and if they're within a couple seconds I need them to be indexed and > removed from a list. > Is there any possible way to index with a custom cmp() function? > > I assume it would be something like... > > list.index(something,mycmp) > > Thanks!
or can i just say.... list.index.__cmp__ = mycmp and do it that way? I just want to make sure I'm not doing anything evil. -- http://mail.python.org/mailman/listinfo/python-list