On Mar 2, 5:11 pm, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: > Wouldn't that be just as slow?
Well, I'm not sure about speed, but with the lambda you're creating a new callable for f every time you call sortMoves. Intuitively, that seems like it would be more of a hit than just doing a lookup for a predefined function. Mabye not though...you could time it and see. Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list