On Fri, 15 Oct 2010 04:43:46 am David Hutto wrote:

> Fixed with:
>
> self.lines = self.newplot.plot(eval(self.plot))

Anytime you use eval, chances are that it isn't fixed at all, but just 
badly and dangerously papered over.

I really, really wish that eval and exec weren't built-ins. They're 
powerful but dangerous and slow, and making them built-ins just 
encourages newbies to use them inappropriately.


-- 
Steven D'Aprano
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to