[Tutor] When max() doesn't work as expected

Kent Johnson kent37 at tds.net
Fri Dec 4 12:52:58 CET 2009


On Fri, Dec 4, 2009 at 2:21 AM, spir <denis.spir at free.fr> wrote:
> Albert Sweigart <asweigart at gmail.com> dixit:
>
>> You need to specify an ordering function, in your case, len():
>
> By the way, is there any reason why the compare func parameter is called 'key'?

It is conventional terminology - the sort key is the value the sort is
done on. Google 'sort key' for lots of usage examples.

Kent


More information about the Tutor mailing list