Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2008-07-14 07:40:13


on Sun Jul 13 2008, William Marié <william.marie-AT-gmail.com> wrote:

> Hi,
>
> I would like to find a way to call Python functions from C++ in a generic
> way. With Python you can use PyObject_CallObject( PyObject* pFun, PyObject*
> pyArg ) where pyArgs is a tuple, this allows the user to genericaly call
> Python functions assuming that you create the right tuple before calling
> PyObject_CallObject.
> With boost python i tried to do the same thing but i can't find a way to do
> it, using the call function or directly the () operator i always have to
> pass all the arguments.
>
> Is there a easy way to do that using boost python ?

I suggest asking on the c++-sig:

http://www.boost.org/community/groups.html#cplussig

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net