How to create a dictionary from a string?

C

Clodoaldo Pinto

Is there a simple way to build a dictionary from a string without using
eval()?
{'a': 1}

Regards, Clodoaldo Pinto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,508
Members
48,193
Latest member
DannyRober

Latest Threads

Top