How is correct use of eval()

Cata catalinfest at gmail.com
Mon Oct 11 14:11:28 EDT 2010


Hi .
I read about eval().
I also read about this "bug" :
cod = raw_input ('Enter:")
eval (cod)
if i use  "rm -rf ~"  all files will be deleted .

What is correct way to use this function?
Thank's



More information about the Python-list mailing list