[IronPython] replacing engine.evaluate by CreateLambda

Dody Gunawinata empirebuilder at gmail.com
Tue Sep 25 09:04:46 CEST 2007


Why not use CreateMethod instead of CreateLambda?

Dody G.

On 9/25/07, Christian Schmidt <Christian2.Schmidt at gmx.de> wrote:
>
> Hello community,
>
> How can I replace the 3 parameter Evaluate-function from PythonEngine
>
>   engine.Evaluate(expression, module, locals)
>
> where expression is a string, module is a EngineModule and locals is a
> IDictionary<string, object> by something like
>
>   delegate object Expression(IDictionary<string, object> locals)
>   Expression expr = engine.CreateLambda<Expression>(expression);
>   ...
>   expr(locals);
>
> I've asked the same question a few days before, but didn't get an answer
> so far. Is it not possible at all?
>
> Thanks for any help.
>
> Christian
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
nomadlife.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070925/766562f9/attachment.html>


More information about the Ironpython-users mailing list