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?
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
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.