Sort with extra variables

MonkeeSage MonkeeSage at gmail.com
Sat Mar 3 00:20:33 CET 2007


On Mar 2, 5:11 pm, Thomas Dybdahl Ahle <lob... at gmail.com> 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




More information about the Python-list mailing list