Sorting a list

Random832 random832 at fastmail.com
Mon Apr 4 09:40:42 EDT 2016


On Mon, Apr 4, 2016, at 02:56, Peter Otten wrote:
> > That works well.  Why is it 'cheating'?
> 
> On second thought it isn't ;)

It does require a numeric type, though. There are lots of types that are
orderable but do not have a negation operator that provides a key with
reversed ordering.



More information about the Python-list mailing list