Re: Capturing stdout from a class method

2007-06-27 Thread Thomas Jollans
Falcolas wrote: > I have a rather strange situation, and I'm not sure my brief > experience of Python will let me handle it properly. > > The situation is this: I have a Java class "X" which I need to call in > a Jython script. The output of "X" is sent to stdout using the java > call System.out.

Capturing stdout from a class method

2007-06-27 Thread Falcolas
I have a rather strange situation, and I'm not sure my brief experience of Python will let me handle it properly. The situation is this: I have a Java class "X" which I need to call in a Jython script. The output of "X" is sent to stdout using the java call System.out. I need to capture this outp