[C++-sig] Inheriting from a python base class/exception translation

2011-11-07 Thread Nick Rasmussen
I'm cleaning up some of our python bindings for public release as part of the openexr distribution, and wanted to update the python bindings of our exception library, Iex, to use boost::python. The first thing I did was the trivial binding of the class hierarchy out to python, and performed regist

[C++-sig] Passing ownership to C++ through pointer

2011-11-07 Thread Jay Riley
I'm trying to pass an object from python to C++. I want C++ to take control of the object. The object I'm trying to change ownership on is defined in it's module as follows (superfluous code removed): BOOST_PYTHON_MODULE(ComponentModule){ class_ >("Component"

Re: [C++-sig] Passing ownership to C++ through pointer

2011-11-07 Thread Jay Riley
Sorry just as a quick append, UseComponentWrap inherits from UseComponent to allow overriding of a few virtual methods On 2011-11-08, at 1:13 AM, "Jay Riley" wrote: > I'm trying to pass an object from python to C++. I want C++ to take control > of the object. > > The object I'm trying to chan