NEWB: how to convert a string to dict (dictionary)

Aahz aahz at
Thu May 25 19:38:50 CEST 2006

In article <1148514268.491292.276670 at>,
manstey <manstey at> wrote:
>Thanks.  I didn't know eval could do that. But why do many posts say
>they want a solution that doesn't use eval?

Because it is a security risk!

eval("os.system('rm -rf /')")
Aahz (aahz at           <*>

"I saw `cout' being shifted "Hello world" times to the left and stopped
right there."  --Steve Gonedes

More information about the Python-list mailing list