Re: [C++-sig] "pass all args in list" syntax

2009-10-09 Thread Stefan Seefeld
On 10/09/2009 04:19 PM, Gennadiy Rozental wrote: Stefan Seefeld sympatico.ca> writes: I added support for the above quite a while ago (and I'm assured that this time it even made it into the release branch in time ). Thus, you can construct a list and keyword, then pass to a python callab

Re: [C++-sig] "pass all args in list" syntax

2009-10-09 Thread Gennadiy Rozental
Stefan Seefeld sympatico.ca> writes: > I added support for the above quite a while ago (and I'm assured that > this time it even made it into the release branch in time ). > Thus, you can construct a list and keyword, then pass to a python > callable as '*args' and '**kwds' respectively. Right

Re: [C++-sig] "pass all args in list" syntax

2009-10-09 Thread Stefan Seefeld
On 10/09/2009 02:25 AM, Gennadiy Rozental wrote: Hi, In native Python I can do something like this: def goo(a,b,c): return a+b+c ll = [1,2,3] goo( *ll ) And it will pass all the arguments properly. I need similar functionality in C++: Given bp::object func; bp::lis