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
--
http://mail.python.org/mailman/listinfo/python-list
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
--
http://mail.python.org/mailman/listinfo/python-list