Boost C++ Libraries: Ticket #3488: A better way to make python functions that take arbitrary number of args than raw_function https://svn.boost.org/trac10/ticket/3488 <p> raw_function can handle only C++ functions that take two args (tuple, dict) and seems to cause static assert if a keyword-expression is passed to def thus causing a lot of manual code if one wants to make it take named arguments or default arguments. </p> <p> It would be nice if there was a way to make such functions closer to defs in python itself, something like this: </p> <pre class="wiki">void foo(int arg1, int arg2, tuple args, dict kw); def("foo", foo, (arg("arg1") = 1, arg("arg2") = 2, arg("*args"), arg("**kw")) // that would pass extra positional args in foo's third arg and extra keyword args to foo's fourth arg </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3488 Trac 1.4.3 Dane Springmeyer <dbsgeo@…> Fri, 25 Sep 2009 21:31:27 GMT cc set https://svn.boost.org/trac10/ticket/3488#comment:1 https://svn.boost.org/trac10/ticket/3488#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">dbsgeo@…</span> added </li> </ul> Ticket