You could also take a look at "register_ptr_to_python" which may help you. see : http://www.boost.org/libs/python/doc/v2/register_ptr_to_python.html Cheers, Nicolas.