Re: Dictionary string parser

2005-11-22 Thread Sebastjan Trepca
Wow, this helps a LOT! It's just what I needed, thank you very much! :) Sebastjan On 22/11/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Sebastjan Trepca wrote: > > > is there any library or some way to parse dictionary string with list, > > string and int objects into a real Python dictionary?

Re: Dictionary string parser

2005-11-22 Thread Fredrik Lundh
Sebastjan Trepca wrote: > 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. i

Dictionary string parser

2005-11-22 Thread Sebastjan Trepca
Hi, 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 -- http://mail.