Question about using python as a scripting language
Wildemar Wildenburger
wildemar at freakmail.de
Tue Aug 8 08:32:32 EDT 2006
Steve Lianoglou wrote:
> Delaney, Timothy (Tim) wrote:
>> This is just asking for trouble.
>>
>> my_list = eval('import shutil; shutil.rmtree('/')')
>
> Hah .. wow.
>
> And in related news: you still shouldn't be taking candy from
> strangers.
>
> Point well taken. Thanks for flagging that one.
Heck, whenever *is* it OK to use eval() then?
?-\
wildemar
More information about the Python-list
mailing list