[C++-sig] Fill a python::str with contents of a vector

2010-06-07 Thread Imran Fanaswala
> On 06/06/2010 06:51 PM, Embhi Karuche wrote: >> I have a vector whose contents I would like to copy >> into a python::str. >> Currently, I am doing: >> >> string temp(myvector.begin(), myvector.end()); >> python::str data(temp); > > You'll need to use the regular Python C API to avoid the tempor

[C++-sig] building boost/python against stackless python and vs 2010

2010-06-07 Thread Philip Jonientz - NEXPLORE AG
Hello there, hopefully im doing it right, never used mailing-lists before. I recently tried building python boost(1.4.3) with stackless python(3.1) using bjam for msvc10, which worked it seems. I already have set up a Visual Studio 2010 project and got stackless python to run a basic simple s

Re: [C++-sig] Fill a python::str with contents of a vector ?

2010-06-07 Thread Lars Viklund
On Sun, Jun 06, 2010 at 09:06:57PM -0700, Jim Bosch wrote: > On 06/06/2010 06:51 PM, Embhi Karuche wrote: >> I have a vector whose contents I would like to copy >> into a python::str. >> Currently, I am doing: >> >> string temp(myvector.begin(), myvector.end()); >> python::str data(temp); > > You'