NEWB: how to convert a string to dict (dictionary)
Aahz
aahz at pythoncraft.com
Thu May 25 13:38:50 EDT 2006
In article <1148514268.491292.276670 at 38g2000cwa.googlegroups.com>,
manstey <manstey at csu.edu.au> 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 pythoncraft.com) <*> http://www.pythoncraft.com/
"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