Re: [IronPython] PythonEngine.EvaluateAs and future division

2006-07-28 Thread Martin Maly
To: 'Discussion of IronPython' Subject: [IronPython] PythonEngine.EvaluateAs and future division The following code gives different results. Is this expected or a bug? IronPython.Compiler.Options.Division = IronPython.Compiler.DivisionOption.New; PythonEngine _pe = new PythonEngine(); _pe.Execute

[IronPython] PythonEngine.EvaluateAs and future division

2006-07-26 Thread Kristof Wagemans
The following code gives different results. Is this expected or a bug? IronPython.Compiler.Options.Division = IronPython.Compiler.DivisionOption.New; PythonEngine _pe = new PythonEngine(); _pe.Execute(result1 = 1/2); double result1 = Convert.ToDouble(_pe.Globals[result1]); double