[Zope] Re: Need to use eval()?

Josef Meile jmeile@hotmail.com
Mon, 17 Dec 2001 13:17:16 +0100


--- In zope@y..., Chris Withers <chrisw@n...> wrote: > "Christopher N.
Deckard" wrote:

> > > > Is there a method I can call that does what eval() does since eval
()

> > is considered evil bad?

I found an easy way to use it: You just have to create an external method
like this one:

def evalExp(pExp):

  return eval(pExp)



Regards, Josef.