Re: [C++-sig] Passing C++ instance to embedded py

2008-12-14 Thread David Abrahams
on Thu Nov 20 2008, fileoffset wrote: > To best explain my problem, here is some code: > > struct A > { > A() > { > mTest = 1; > > std::cout << "Test: " << mTest; > > Py_Initialize(); > object main_module = import("__main__"); >

Re: [C++-sig] preventing boost::python::throw_error_already_set

2008-12-14 Thread Leonard Ritter
On Thu, Dec 11, 2008 at 5:32 PM, Stefan Seefeld wrote: > Leonard Ritter wrote: > >> hi everyone, >> >> i'm having a problem where a boost::python::throw_error_already_set is >> being thrown and causes a segfault (linux). unfortunately the error happens >> from within python, when reaching the end