[Python-ideas] Make max() stable

random832 at fastmail.us random832 at fastmail.us
Tue Jan 21 21:17:30 CET 2014


On Fri, Jan 17, 2014, at 11:15, Chris Angelico wrote:
> By that definition, a stable sort means that:
> 
> lst = sorted((x,y))
> assert lst == [min(lst), max(lst)]
> 
> will pass for any x and y.

What definition of stable is this?
Why not assert lst == [min(lst), max(lst[::-1])]?


More information about the Python-ideas mailing list