[C++-sig] enhancement: Py_DECREF / Py_XDECREF assertion

2016-04-28 Thread Wilfried Karel
Dear Stefan, I've created a pull request: https://github.com/boostorg/python/pull/64 Cheers, Willi. > Hi Willi, > > On 26.04.2016 16:19, Wilfried Karel wrote: >> Dear list, >> >> I suggest to insert an assertion before calling Py_DECREF/Py_XDECREF >> which ensures that the reference count befor

[C++-sig] Trying to implement a Boost Python stl_forward_iterator

2016-04-28 Thread Matthew Conte
Hello list, I'm having trouble creating a boost python forward iterator to get a numpy array as input of a C++ function that takes an stl begin and end iterator as a template and modifies it, here's the code for the C++ function: *template* *void fill_increasing(_InputIt begin, _InputIt end, type