On Oct 17, 3:37 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > A couple of times recently I've come across this problem: I have a > > large list to sort and I need to the the "key=function" argument to > > sort appropriately. But I actually have the key mapping in a big > > dictionary.so use a bound method: > > L.sort(key=key_dict.get)
Duh! Why didn't I think of that... Thanks guys, that's perfect. -- George -- http://mail.python.org/mailman/listinfo/python-list