[C++-sig] Embedded Python Terminal Output

Mike Stoddart stodge at gmail.com
Fri May 9 01:21:41 CEST 2008


This should help:

http://forums.devshed.com/showpost.php?p=1963866&postcount=5

I implemented something similar and it works perfectly.



On 5/8/08, Thomas Hrabe <thrabe at burnham.org> wrote:
>
>
> Ok, and how would I do that?
> What other Python class will I choose then?
>
>
>
> -----Original Message-----
> From: c++-sig-bounces at python.org <c%2B%2B-sig-bounces at python.org> on
> behalf of Nat Goodspeed
> Sent: Wed 5/7/2008 7:28 PM
> To: Development of Python/C++ integration
> Subject: Re: [C++-sig] Embedded Python Terminal Output
>
> Thomas Hrabe wrote:
>
> > I was wandering how one could catch the terminal output of an embedded
> > python interface?
>
> The straightforward thing would be to replace Python's sys.stdout with a
> Python class of your choice.
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org <C%2B%2B-sig at python.org>
> http://mail.python.org/mailman/listinfo/c++-sig
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org <C%2B%2B-sig at python.org>
> http://mail.python.org/mailman/listinfo/c++-sig
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080508/fcc9908e/attachment.htm>


More information about the Cplusplus-sig mailing list