21 Jan
2014
21 Jan
'14
8:17 p.m.
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])]?