[C++-sig] Boost Python: C++ struct with a function pointer

puneet goel p_goel at coverify.net
Wed Mar 3 03:35:43 CET 2010


> boost::python::object - it's just a smart pointer to an arbitrary Python
> object (in the Python C-API, it's PyObject*).  It overloads operator()
> to invoke the underlying Python object's __call__ method, and it's
> templated to take a reasonable number of arbitrarily typed arguments,
> convert them to Python, and feed them to the Python method.
>

Jim/Stefan.

I think now I know how to proceed.

Thanks a ton.

Regards
- Puneet


More information about the Cplusplus-sig mailing list