Clodoaldo Pinto wrote:
> Is there a simple way to build a dictionary from a string without using
> eval()?
> 
>>>> s = '{"a":1}'
>>>> d = eval(s)
>>>> d
> {'a': 1}
> 
> Regards, Clodoaldo Pinto
> 

Here is a discussion about one way to do it:
http://tinyurl.com/o8mmm

HTH
Michael

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to