[C++-sig] Somewhat beginners error in using boost::python::list from C++?

2011-01-15 Thread Michael Wand
Hello, sorry if this question is too trivial, but I've got some rather strange problem with using the boost::python type wrapper for the python list. It goes as follows: I've got a very small demo program (say main.cpp). Running it causes a segfault. (The actual project is much larger, of course

Re: [C++-sig] Somewhat beginners error in using boost::python::list from C++?

2011-01-15 Thread Stefan Seefeld
On 2011-01-15 09:01, Michael Wand wrote: int main() { boost::python::list myList; myList.append("foo"); myList.append("fork"); cerr<< "Printing length of list."<< endl; cerr<< "Length of myList: "<< boost::python::len(myList)<< endl; // the above line causes a segfau