Michael Hoffman <[EMAIL PROTECTED]> wrote: > >Hint: if you find yourself using a decorate-sort-undecorate pattern, >sorted(key=func) or sequence.sort(key=func) might be a better idea.
Is it? I thought I remember reading on this very list some years ago that the performance of sequence.sort became much, much worse when a key function was supplied. I've tended to favor the "Schwarzian transform" (decorate-sort-undecorate) because of that. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list