On Thu, Oct 14, 2010 at 10:09 PM, Steven D'Aprano <st...@pearwood.info> wrote: > 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.
If inappropriately means that it works as expected:). But seriously, I haven't found another way, than in thought, about what alan said about raw_input-running it through their instead, but I haven't tried yet this morning. > > > -- > Steven D'Aprano > _______________________________________________ > Tutor maillist - tu...@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor