How can I convert the str representation of a dict, such as the following string, into a dict?
str
dict
s = \"{\'muffin\' : \'l
Use json. the ast library consumes a lot of memory and and slower. I have a process that needs to read a text file of 156Mb. Ast with 5 minutes delay for the conversion dictionary json and 1 minutes using 60% less memory!
json
ast
Ast