Boost logo

Boost Users :

From: William Marié (william.marie_at_[hidden])
Date: 2008-07-13 13:52:48


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 ?

-- 
View this message in context: http://www.nabble.com/Boost-Python-%3A-Generic-Function-Call-tp18431821p18431821.html
Sent from the Boost - Users mailing list archive at Nabble.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