[C++-sig] Re: calling python method using keywords
David Abrahams
dave at boost-consulting.com
Mon Jan 12 23:46:10 CET 2004
Stefan Seefeld <seefeld at sympatico.ca> writes:
> David Abrahams wrote:
>
>> For now, you have to go to the Python 'C' API to do it. I just
>> realized that Python doesn't have any unary operator*, so we could
>> make the foobar(*args, **kwds);
>> syntax work in C++. Not implemented yet, though ;-)
>
> what's wrong with a version of 'call' like
>
> object call(const tuple &t, const dict &d);
>
> ?
It doesn't take a callable object?
> That doesn't provide the syntactic sugar you seem to be looking for,
> but it comes close and seems fairly easy to implement.
The syntactic sugar is just about as easy to implement.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list