Boost logo

Boost Users :

Subject: Re: [Boost-users] How to send list from Python to boost python
From: Guruswamy B M (guruswamy.1984_at_[hidden])
Date: 2012-04-20 06:27:47


Hi,
I am using version 1.48, it gives me "error C2039: 'list' : is not a member
of 'boost::python" error. Also same error observed in version 1.49 also.
How did u using this in your code? can explain me the steps?
Thanks,
Guru

On Mon, Apr 9, 2012 at 5:41 PM, jiangzuoyan_at_[hidden] <jiangzuoyan_at_[hidden]
> wrote:

> What's the version of your boost.python?
>
> It works fine here with boost::python::list, version 1.49.
>
> Changsheng Jiang
>
>
> On Thu, Apr 5, 2012 at 12:27, Guruswamy B M <guruswamy.1984_at_[hidden]>wrote:
>
>> Hi,
>>
>> I have been using boost python for one of my application. In the same
>> I have to send list from python to boost wrapper. Ex:.
>>
>> >From python.
>>
>> a = [1, 2, 3, 4]
>> test(a);
>>
>> In wrapper my C++ fucntion should be like below:
>>
>> void test(list a)
>> {
>> list processing.
>> }
>>
>> I tried similar way, but getting an signature error. I need a help on
>> how to send list from the python, so that can access each element of
>> list in C++ wrapper.
>>
>> Thanks and Regards,
>> Guru
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net