Q: sort's key and cmp parameters

Bearophile bearophileHUGS at lycos.com
Thu Oct 1 15:39:23 EDT 2009


Paul Rubin:

> 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?

Bye,
bearophile



More information about the Python-list mailing list