Timothy Strimple wrote:

I’m trying to setup a persistent IronPython environment but I’m not sure where to start. I would like to be able to do something like the following…

 

PythonEngine engine = new PythonEngine();

engine.Execute("x = 12");

engine.Execute("Print x");

This should probably be:

engine.Execute("print x");


Note the lowercase 'p' in print.

As they execute in the default module I would expect this to work.

Michael Foord
http://www.voidspace.org.uk/ironpython/index.shtml

 

Currently everything I have tried throws an exception since the first statement isn’t maintained within the engine. I’ve tried using ParseInteractiveInput and can’t seem to get that to work as desired either. Any help would be greatly appreciated.

 

Tim.


_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to