python 3: sorting with a comparison function

Thomas Heller theller at python.net
Thu Oct 9 15:32:09 EDT 2008


Does Python 3 have no way anymore to sort with a comparison function?

Both [].sort() and sorted() seem to accept only 'key' and 'reverse' arguments,
the 'cmp' argument seems to be gone.  Can that be?

Thomas



More information about the Python-list mailing list