On Thu, May 3, 2012 at 3:57 AM, Laurent Pointal <laurent.poin...@free.fr> wrote: > If you have it as a string, you can use eval() (not safe!) on the string to > retrieve the tuple, then list() on the tuple to get a list.
Are you saying that eval is not safe (which it isn't), or that it has to be eval() and not safe_eval() to do this job? There's also ast.literal_eval which ought to be safe for this situation (I think). ChrisA -- http://mail.python.org/mailman/listinfo/python-list