Create list/dict from string

Simon Brunning simon at brunningonline.net
Tue Jan 19 12:27:33 EST 2010


2010/1/19 Peter Otten <__peter__ at web.de>:
> Both eval() and json.loads() will do. eval() is dangerous as it allows the
> user to run arbitrary python code.

Something like <http://code.activestate.com/recipes/364469/> might be
worth a look too.

-- 
Cheers,
Simon B.



More information about the Python-list mailing list