Re: [C++-sig] boost.python: call python function with kwargs from c++

2009-12-03 Thread Stefan Seefeld
On 12/03/2009 07:11 AM, meiko rachimow wrote: Hi How can I call a function defined in a python module from c++, if I have to give **kwargs parameter... example.py: def hello(**kwargs): for key, value in kwargs.items(): print key, " - ", value c++: using namespace boost::python;

[C++-sig] boost.python: call python function with kwargs from c++

2009-12-03 Thread meiko rachimow
Hi How can I call a function defined in a python module from c++, if I have to give **kwargs parameter... example.py: def hello(**kwargs): for key, value in kwargs.items(): print key, " - ", value c++: using namespace boost::python; object fun = import("example").attr("hello") fu