Parsing a dictionary or list from a string in Python

Posted by disconeckted on Stack Overflow See other posts from Stack Overflow or by disconeckted
Published on 2010-03-19T08:29:32Z Indexed on 2010/03/19 8:31 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

What is the most straightforward way of making dictionary or list from a string in Python? Let's say I have string "{ 'x' : 3, 'y' : 4 }" and I want to parse it to a real dictionary object.

© Stack Overflow or respective owner

Related posts about python

Related posts about parse