[Numpy-discussion] Do getitem/setitem already have GIL?

2016-04-20 Thread Steve Mitchell
When writing custom PyArray_ArrFuncs getitem() and setitem(), do I need to acquire the GIL, or has it been done for me already by the caller? --Steve http://docs.scipy.org/doc/numpy/reference/c-api.array.html?highlight=allow_c_api#group-2 http://docs.scipy.org/doc/numpy/reference/internals.cod

[Numpy-discussion] rational custom dtype example

2016-04-02 Thread Steve Mitchell
I have noticed a few issues with the "rational" custom C dtype example. 1.It doesn't build on Windows. I managed to tweak it to build. Mainly, the MSVC9 compiler is C89. 2. A few tests don't pass on Windows, due to integer sizes. 3. The copyswap and copyswapn routines don