Q: sort's key and cmp parameters

Paul Rubin http
Thu Oct 1 22:21:12 EDT 2009


Bearophile <bearophileHUGS at lycos.com> writes:
> > Yes, think of sorting tree structures where you have to recursively
> > compare them til you find an unequal pair of nodes.
> 
> That's cute. In what situations do you have to perform such kind of
> sort?

It came up in a search engine application I've been involved with.



More information about the Python-list mailing list