On Tue, 08 Aug 2006 14:32:32 +0200 Wildemar Wildenburger <[EMAIL PROTECTED]> wrote:
#> 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? eval is like optimisation. There are two rules: Rule 1: Do not use it. Rule 2 (for experts only): Do not use it (yet). :) -- Best wishes, Slawomir Nowaczyk ( [EMAIL PROTECTED] ) The good people sleep much better at night than the bad people. Of course, the bad people enjoy the waking hours much more. -- http://mail.python.org/mailman/listinfo/python-list