[Tutor] Converting from unicode to nonstring
Steven D'Aprano
steve at pearwood.info
Fri Oct 15 04:09:36 CEST 2010
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
More information about the Tutor
mailing list