Re: Retrieving result from embedded execution

2012-05-11 Thread Chris Angelico
On Sat, May 12, 2012 at 3:36 AM, Devin Jeanpierre wrote: > On Fri, May 11, 2012 at 12:45 AM, Stefan Behnel wrote: >> However, have you tried using a pipe for them instead of a real file? That >> would allow you to retrieve the output without needing to pass through a >> file in the file system. Y

Re: Retrieving result from embedded execution

2012-05-11 Thread Devin Jeanpierre
On Fri, May 11, 2012 at 12:45 AM, Stefan Behnel wrote: > However, have you tried using a pipe for them instead of a real file? That > would allow you to retrieve the output without needing to pass through a > file in the file system. You can also replace sys.stdout/err with arbitrary > objects in

Re: Retrieving result from embedded execution

2012-05-10 Thread Stefan Behnel
F L, 08.05.2012 21:07: > We are trying to implement our own interactive interpreter in our > applicationusing an embedded Python interpreter. I was wondering what > would be the best way to retreive as text the result of executing > Python code. The text must be exactly the same as it would be in

Re: Retrieving result from embedded execution

2012-05-10 Thread Chris Angelico
On Wed, May 9, 2012 at 5:07 AM, F L wrote: > Hello everyone, > > We are trying to implement our own interactive interpreter in our > application > using an embedded Python interpreter. > > I was wondering what would be the best way to retreive as text the result of > executing Python code. The tex

Re: Retrieving result from embedded execution

2012-05-08 Thread William R. Wing (Bill Wing)
On May 8, 2012, at 3:07 PM, F L wrote: > Hello everyone, > > We are trying to implement our own interactive interpreter in our application > using an embedded Python interpreter. > > I was wondering what would be the best way to retreive as text the result of > executing Python code. The text