[Python-Dev] decorate-sort-undecorate

Tim Peters tim.one at comcast.net
Thu Oct 16 12:50:41 EDT 2003


[Michael Chermside]
> ...
> But both sides could probably be happy with:
>
>     aList.sort(chain=True).reverse()
>
> Right?

Probably not:  some people want list.sort() to return a (shallow) copy of
the list in sorted order, leaving the original list alone, sometimes.
Somtimes not.  It's all dead easy already, of course.




More information about the Python-Dev mailing list