[IronPython] Hosting question

Slide slide.o.mix at gmail.com
Wed Jul 26 16:31:40 CEST 2006


I have been playing around with embedding IronPython into an
application to provide scripting support for my .NET application. One
thing that I have noticed is that to get the output from the
interpreter you have to use EvalToConsole. So to capture the input, I
have to use SetStandardOut to some memory stream, etc, etc. I played
with Boo prior to IronPython and they had a cool feature of the
interactive interpreter where there was an event for when the
interpreter printed something to its standard output, so to get the
output it was as easy as adding an event handler to that event. Is
there anything in the works like this, or should I just continue
piping the output to a memory stream and go from there?

Thanks



More information about the Ironpython-users mailing list