Can I overload the compare (cmp()) function for a Lists ([]) index function?
Paul Rubin
http
Fri Sep 28 20:07:54 EDT 2007
xkenneth <xkenneth at gmail.com> writes:
> 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?
This sounds like you want itertools.groupby. What is the exact
requirement?
More information about the Python-list
mailing list