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

2010-06-06 Thread Embhi Karuche
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); How can I skip the intermediate copy? Thanks ___ Cplusplus-sig mailing list Cplusplus-

[C++-sig] Does Boost.Python consider this as "unsupported" (threading related)

2010-06-06 Thread Embhi Karuche
>No you can do this, I do the same thing in my project. >However, without appropriate GIL locks your new thread cannot call into >python. So make sure your new thread of not calling any python callables >and you are fine. In my worker thread (ie, the workCallback() which is invoked by the doHeavy

[C++-sig] Does Boost.Python consider this as "unsupported" (threading related)

2010-06-06 Thread Embhi Karuche
Hello I have read the FAQ ( http://bit.ly/dl8j8o ) about multi-threading/multi-interpretor support - but I don't quite understand it. Please help me get clarified with it. Suppose I have exposed a C++ class's member function using Boost.Python. This function internally starts a Boost.Thread. Is th