copysort patch, was RE: [Python-Dev] inline sort option

Phillip J. Eby pje at telecommunity.com
Tue Oct 28 09:01:29 EST 2003


At 05:29 AM 10/28/03 -0500, Raymond Hettinger wrote:
>   inlinesort()   # immediately clear how it is different from sort()
>   sortedcopy()   # clear that it makes a copy and does a sort
>   newsorted()    # appropriate for a class method constructor

+1 on sortedcopy(), especially if it's usable as a method, e.g. 
myList.sortedcopy().  (Note that that doesn't exclude it also being spelled 
as 'list.sortedcopy(myList)'.)




More information about the Python-Dev mailing list