[C++-sig] embedded python and redirect

Olaf Peter ope-devel at gmx.de
Thu Aug 7 21:18:16 CEST 2008


Hi

at this time I try to embed python and redirect stderr/stdout using the
test attached. That's are my first steps in boost.python ;-) Well, the
exception handling does not compile as expected, I've got a lot of
errors - why?

Anyway, this file is mixed from different tutorials from net. Unsolved
is the problem on executing the real python command (py::object vs.
PyObject* strategy)? Any hints here?

How can I check that redirection was successfully?

Thanks,
Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost_python.cpp
Type: text/x-c++src
Size: 2832 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080807/91b6dabd/attachment.cpp>


More information about the Cplusplus-sig mailing list