|
Boost Users : |
Subject: [Boost-users] How to send python list to c++ function
From: Guruswamy B M (guruswamy.1984_at_[hidden])
Date: 2012-04-04 07:09:58
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 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