On Fri, Dec 4, 2009 at 2:21 AM, spir <[email protected]> wrote: > Albert Sweigart <[email protected]> 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 _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
