[C++-sig] boost:python::arg and default value

David Abrahams dave at boost-consulting.com
Fri Sep 1 02:53:21 CEST 2006


"Roman Yakovenko" <roman.yakovenko at gmail.com> writes:

> On 8/31/06, David Abrahams <dave at boost-consulting.com> wrote:
>> > I see only one possible solution - to add to Boost.Python
>> > functionality, that will
>> > allow user to control argument default value conversion time.
>>
>> I disagree.  It should be lazy and do the conversion on demand.  Extra
>> control is not a significant benefit in this instance.
>
> Does "lazy and on demand" mean first time a user calls function?

Yes... or even the first time a user actually uses the default.

> If so, I will try to work on the patch, but I think I still will
> need help with boost::python::objects::function class.

I'll do my best to help

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




More information about the Cplusplus-sig mailing list