RE: copysort patch, was RE: [Python-Dev] inline sort option
28 Oct
2003
28 Oct
'03
8:42 p.m.
Hi, Raymond Hettinger wrote:
Okay, this is the last chance to come-up with a name other than sorted().
Here are some alternatives:
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
I especially like the last one and all of them provide a distinction from list.sort().
How about adding a builtin function sort() which returns the sorted version of the input list? L.sort() # sort in-place sort(L) # return sorted copy Regards, Chih-Chung Chang
7456
Age (days ago)
7456
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chih-Chung Chang