[C++-sig] How argument passing works with boost python ?

cbailly b.christophe at yahoo.fr
Tue Aug 15 16:07:05 CEST 2006


Ok, I think I've got it... It seemed a little bit magic for me to get the  
signature at compile time to call the right converters. It must be the  
magic of templates !

Thanks a lot for all your answers !.


Le Tue, 15 Aug 2006 15:00:44 +0200, Roman Yakovenko  
<roman.yakovenko at gmail.com> a écrit:

> On 8/15/06, David Abrahams <dave at boost-consulting.com> wrote:
>> cbailly <b.christophe at yahoo.fr> writes:
>>
>> > Thanks for your answer
>> >
>> > Can you tell me if my understanding is ok:
>> >
>> > Does it mean that each time a str python object is passed as an
>> > argument, then an automatic conversion is made to std::string type ?
>> > Regardless of the prototype of the method, just because converters
>> > have been registered.
>>
>> No: the prototype of the method is part of the type of the (member)
>> function pointer you pass to def().  The library uses this type
>> information to choose the eligible converters for each parameter.
>
> Can you point to the source code?
>
> Thanks
>



-- 
Utilisant le client e-mail révolutionnaire d'Opera :  
http://www.opera.com/mail/




More information about the Cplusplus-sig mailing list