How to send list from Python to boost python

5 Apr
2012
5 Apr
'12
4:27 a.m.
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

20 Apr
20 Apr
10:27 a.m.
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@gmail.com
wrote:
4764
Age (days ago)
4779
Last active (days ago)
2 comments
2 participants
participants (2)
-
Guruswamy B M
-
jiangzuoyan@gmail.com