Converting a strng to an anonymous function
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon Sep 29 16:04:29 EDT 2008
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...
More information about the Python-list
mailing list