Nathan Seese a écrit :
I'm writing a program to sort files with arbitrary python code. The method I'm using for that is to pass sort an anonymous function taken from the arguments. I'm wondering how to change a raw string into an anonyous function.
Care to give a couple more explanation about your use case ? There might be better solutions than eval/exec...
-- http://mail.python.org/mailman/listinfo/python-list