Hi,

Last time I wrote here I was concerned with memory consumption and performance of embedding IronPython. I decided then to use the FastEval option.

I think I found some error in this mode. In code below the last line would throw "Key not found in dictionary." exception caused by the "None" term. When you don't use the FastEval the code runs properly.

       static void Main(string[] args)
       {
           IronPython.AST.Options.FastEval = true;
           IronPython.AST.Options.DoNotSaveBinaries = true;

           PythonEngine engine = new PythonEngine();

           engine.SetVariable("item", null);
           object value = engine.Evaluate("item == None");
       }

Also, could you please explain what exactly are the differences between the two modes.

Szymon Kobalczyk.
_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to