[C++-sig] Re: calling python method using keywords

David Abrahams dave at boost-consulting.com
Mon Jan 12 18:35:13 CET 2004


Stefan Seefeld <stefan.seefeld at orthosoft.ca> writes:

> hi there,
>
> I'm looking for a way to call a python
> callable not with explicit arguments, but
> instead using the tuple / dict form, i.e.
>
> args = tuple('a', 'b')
> kwds = {'c':'C', 'd':'D'}
>
> f = foobar(*args, **kwds)
>
> I can't find any documentation on this, though.
> Is there a predefined 'call' function with the
> appropriate signature ?

Do you mean that you want to do this from C++?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list