I have a vector<unsigned char> 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