471,602 Members | 1,350 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,602 software developers and data experts.

Dictionary string parser


is there any library or some way to parse dictionary string with list,
string and int objects into a real Python dictionary?

For example:
my_dict = dict_parser("{'test':'123','hehe':['hooray',1]}")

I could use eval() but it's not very fast nor secure.

Thanks, Sebastjan
Nov 22 '05 #1
0 961

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by john wright | last post: by
2 posts views Thread by Tom Grove | last post: by
4 posts views Thread by NullQwerty | last post: by
6 posts views Thread by Tina I | last post: by
3 posts views Thread by JamesB | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.