Swig and sys.stdout

View: New views
1 Messages — Rating Filter:   Alert me  

Swig and sys.stdout

by Mads Ipsen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

This is my first post to this list, so I apologize if my posting is
misplaced.

We are using swig to wrap C++ to Python, and need to redirect stdout to
a GUI based log window. However, calls to printf or cout are not caught
by Pythons sys.stdout.

Any known solutions to this issue?

Best regards,

Mads

--
+-------------------------------------------------------------+
| Mads Ipsen, Scientific developer                            |
+-------------------------------+-----------------------------+
| QuantumWise A/S               | phone:         +45-29716388 |
| Nørre Søgade 27A              | www:    www.quantumwise.com |
| DK-1370 Copenhagen K, Denmark | email:  mpi@... |
+-------------------------------+-----------------------------+



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user