Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-09-11 06:55:11


<ctrembla_at_[hidden]> writes:

> Hi,
>
> newbie in python and boost::python

Please post Boost.Python questions to the C++-sig:
http://www.boost.org/more/mailing_lists.htm#cplussig

> I have a method in c++ that returns a vector of strings, how can i
> expose this method in python, and how should i use it in python

Sorry to turn the question around on you, but how do you /want/ to be
able to use it in Python? That will determine how you should expose
it.

You might look into
http://boost.org/libs/python/doc/v2/indexing.html#vector_indexing_suite_class
to see if it meets your needs.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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