[Tutor] Redirecting Python Interpreter Output
Ketut Mahaindra
KMahaindra@beijing.sema.slb.com
Sat, 10 Aug 2002 19:15:41 +0800
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--Boundary_(ID_qG23WymfPxRLrWTS/42SLw)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Hi,
I am currently developing an application
which embed / extend Python in C++ / MSVC 6.0
If I embed the Python interpreter in my C++ code, is there any way to
redirect the output of the interpreter or the output of the script ?
For example I want to catch the output and display it in an edit box
Any suggestions here ?
--
Best regards
Ito
--Boundary_(ID_qG23WymfPxRLrWTS/42SLw)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Redirecting Python Interpreter Output</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>I am currently developing an application </FONT>
<BR><FONT SIZE=2>which embed / extend Python in C++ / MSVC 6.0</FONT>
</P>
<P><FONT SIZE=2>If I embed the Python interpreter in my C++ code, is there any way to</FONT>
<BR><FONT SIZE=2>redirect the output of the interpreter or the output of the script ?</FONT>
<BR><FONT SIZE=2>For example I want to catch the output and display it in an edit box</FONT>
<BR><FONT SIZE=2>Any suggestions here ?</FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Best regards</FONT>
</P>
<P><FONT SIZE=2>Ito</FONT>
</P>
</BODY>
</HTML>
--Boundary_(ID_qG23WymfPxRLrWTS/42SLw)--