Re: [C++-sig] Iterating over small objects

2012-01-23 Thread Babak Khataee
Okay cool thanks your input. For any one else has a similar problem - writing a simple iterator function in python (which is a generator) and assigning that to the __iter__ member works well as an alternative. For me this turned out to be considerably faster than using a c++ iterator/getitem itera

[C++-sig] A few questions on Boost.Python

2012-01-23 Thread Bo Jensen
Hi, I have been looking into the best way for me to make a python wrapper for a C++ library. Boost.Python looks nice and seem to fit my needs, but I have a few questions before I dig in deep and do the implementation. What I want to do : I have a very thin header only C++ library, which is an ex

Re: [C++-sig] A few questions on Boost.Python

2012-01-23 Thread Jim Bosch
On 01/23/2012 02:35 PM, Bo Jensen wrote: Hi, I have been looking into the best way for me to make a python wrapper for a C++ library. Boost.Python looks nice and seem to fit my needs, but I have a few questions before I dig in deep and do the implementation. What I want to do : I have a very t

Re: [C++-sig] A few questions on Boost.Python

2012-01-23 Thread Anders Wallin
>> 5) I also read that Boost.Python is not thread safe, is that true and if >> yes can it be fixed/hacked ? >> > > Other people on this list know a lot more than I do about this topic.  I > believe the answer depends on whether the multithreaded programming crosses > the C++/Python boundary. FWIW