Re: [C++-sig] getting a list of strings from a static method

2011-08-25 Thread Jim Bosch
On 08/24/2011 10:07 PM, Josh Stratton wrote: I'm very new to boost python and trying to figure out how to properly get a list of strings from a static method in my main namespace. I'm not sure if I need to extract the list from the object or if it's already a list. boost::python::object list =

[C++-sig] getting a list of strings from a static method

2011-08-24 Thread Josh Stratton
I'm very new to boost python and trying to figure out how to properly get a list of strings from a static method in my main namespace. I'm not sure if I need to extract the list from the object or if it's already a list. boost::python::object list = exec("Foo.extensions()", _pyMainNamespace); //