[C++-sig] Subclassing C++ classes in Python

2015-03-15 Thread Ernie Lee
Hi there, I am creating binding for some C++ classes and I need to be able to subclass exposed C++ classes in Python (and pass subclassed instances back in to C++ code). I was able to make this work by following this example: http://www.boost.org/doc/libs/1_57_0/libs/python/doc/tutorial/doc/h

Re: [C++-sig] Memory management in Boost.Python

2015-03-15 Thread Ernie Lee
Hi Stefan, I tried to create minimal tests and it turned out that there might be two separate issues here: one related to memory management and other to subclassing C++ classes in Python (i will post the subclassing example in separate mail). Running code below as-is works fine and i can see