Re: [C++-sig] Cplusplus-sig Digest, Vol 15, Issue 3

2009-12-07 Thread meiko rachimow
when i: "fun(**kwargs)" I get following runtime error: TypeError: No to_python (by-value) converter found for C++ type: boost::python::detail::kwds_proxy thx again meiko > Message: 1 > Date: Thu, 3 Dec 2009 13:11:41 +0100 > From: meiko rachimow > To: cplusplus-sig@py

[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