Parsing a dictionary or list from a string in Python
- by disconeckted
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.