Re: [Numpy-discussion] _PyADt

2013-08-30 Thread Stéfan van der Walt
On Fri, Aug 30, 2013 at 1:27 AM, Charles R Harris wrote: > Anyone know what _PyADt is? It turns up in ndarraytypes.h > > #define PyDataType_ISBOOL(obj) PyTypeNum_ISBOOL(_PyADt(obj)) That code looks broken--can't we just remove it? Stéfan ___ NumPy-Disc

[Numpy-discussion] _PyADt

2013-08-29 Thread Charles R Harris
Anyone know what _PyADt is? It turns up in ndarraytypes.h #define PyDataType_ISBOOL(obj) PyTypeNum_ISBOOL(_PyADt(obj)) and only there. It's not in the build directory, google yields nothing. I suspect it is an historical artifact turned bug and should be replaced by ((PyArray_Descr*)(obj))->type_