[IronPython] retreiving output

Darrick Wiebe darrick at innatesoftware.com
Tue Jan 25 21:11:11 CET 2005


There is probably a better way to do this, but one possible solution is to 
redirect Console.Out to a stream that you can read.


----- Original Message ----- 
From: <users-ironpython.com-request at lists.ironpython.com>
To: <users-ironpython.com at lists.ironpython.com>
Sent: Tuesday, January 25, 2005 3:06 PM
Subject: users-ironpython.com Digest, Vol 6, Issue 6


> Send users-ironpython.com mailing list submissions to
> users-ironpython.com at lists.ironpython.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> or, via email, send a message with subject or body 'help' to
> users-ironpython.com-request at lists.ironpython.com
>
> You can reach the person managing the list at
> users-ironpython.com-owner at lists.ironpython.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of users-ironpython.com digest..."
>
>
> Today's Topics:
>
>   1. Re: users-ironpython.com Digest, Vol 6, Issue 5 (Michel Claveau)
>   2. Using IronPython Inside a C# App. (raptor)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 24 Jan 2005 21:59:37 +0100
> From: "Michel Claveau" <mc at mclaveau.com>
> Subject: [IronPython] Re: users-ironpython.com Digest, Vol 6, Issue 5
> To: <users-ironpython.com at lists.ironpython.com>
> Message-ID: <000401c50257$a0ebdeb0$0701a8c0 at PORTABLES>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Same question...
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 25 Jan 2005 18:33:11
> From: "raptor" <raptor at neurell.com>
> Subject: [IronPython] Using IronPython Inside a C# App.
> To: users-ironpython.com at lists.ironpython.com
> Message-ID: <20050125183312.17498.qmail at station197.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am trying to use IronPython from within a C# windows application.  I can 
> instantiate a module, frame
> run the parser. All works fine except I cannot seem to retrieve the output 
> from the run of an expression statement (ExprStmt). It is automagically 
> written out to the console.
>
> Looking at the DoInterActive() function in side of the IronPythonConsole 
> project:
>
> Is seems to me that the code is run when the following line is execute:
>
>     code.Run(topFrame);
>
> code is a SnippetMaker object, which has a Run method added dynamically.
>
> Does anyone know how I might retieve the String result of the Run call
> so that I can display it?
>
> Any help or insight is appreciated.
>
>
> ------------------------------
>
> _______________________________________________
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
> End of users-ironpython.com Digest, Vol 6, Issue 6
> ************************************************** 




More information about the Ironpython-users mailing list