[C++-sig] embedding an extended python module

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Jan 13 00:45:53 CET 2005


--- Daniel Lawson <daniel at wand.net.nz> wrote:

> I understand that. However, within my calling program (the one embedding 
> python), I don't have a PyObject yet. I have a pointer to a C++ class.  
> This class has been exported via boost.

Maybe you just want to say

    boost::python::object(cpp_instance)

or something like

    boost::python::object(boost::python::ptr(cpp_pointer))

?

I am not sure about the second form since I never use raw pointers. If this is
on the right track I hope David will help out with the exact details.



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail



More information about the Cplusplus-sig mailing list