[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-02-16 Thread Lea Wiemann
Lea Wiemann added the comment: I know, but I don't always want to define the comparison on the object itself, because it's not an intrinsic feature of the object. It's just the way I happen to sort it right now. (That's especially likely if the ordering

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-02-16 Thread Lea Wiemann
Lea Wiemann added the comment: "Non-obvious" to the novice that this technique can be used, and non- obvious to the reader of the program. I'm envisioning key functions that return long sequences of -1/0/1 integers, or numbers between 0 and 2**50... Not good. Instead of re

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2008-02-16 Thread Lea Wiemann
Lea Wiemann added the comment: Is this really necessary? I see that the sorting code gets a little simpler, but I believe that there are valid use cases for cmp out there, where using a key would at least be cumbersome. So why remove it when it's useful? For instance, if you ha