Re: [C++-sig] wrapped std::vector slice affecting items in a python list

2011-08-12 Thread Jim Bosch
On 08/12/2011 04:28 AM, babak wrote: Hi, I've come across some unusual behaviour that I was hoping some one might be able to explain to me. In python I have a list and a wrapped std::vector (using the vector_indexing_suite) where the list contains the items in the vector. If I slice insert ite

Re: [C++-sig] automatic conversion from python unicode object to C++ std::string?

2011-08-12 Thread Jim Bosch
On 08/12/2011 04:36 AM, John Reid wrote: I recently upgraded to ipython 0.11. In 0.11 sys.argv entries are of type unicode rather than string. All of my scripts that call into boost.python extensions fail as my exposed functions expect arguments of type std::string. Presumably I could recode all

Re: [C++-sig] arguments to c++ functions

2011-08-12 Thread Jim Bosch
On 08/09/2011 08:33 PM, Josh Stratton wrote: Where can I find docs for sending arguments to C\C++ functions? I've followed the hello world example, which seems to automatically convert a python string to a char*, but I'm going to need more conversions later like how to handle a char**. Somethin

[C++-sig] automatic conversion from python unicode object to C++ std::string?

2011-08-12 Thread John Reid
I recently upgraded to ipython 0.11. In 0.11 sys.argv entries are of type unicode rather than string. All of my scripts that call into boost.python extensions fail as my exposed functions expect arguments of type std::string. Presumably I could recode all my functions to use std::wstring and ev

[C++-sig] wrapped std::vector slice affecting items in a python list

2011-08-12 Thread babak
Hi, I've come across some unusual behaviour that I was hoping some one might be able to explain to me. In python I have a list and a wrapped std::vector (using the vector_indexing_suite) where the list contains the items in the vector. If I slice insert items into the vector then the items in th