The problem was with the definition of PyArray_SearchSorted, namely cdef object PyArray_SearchSorted (ndarray, object, NPY_SEARCHSIDE)
The problem was that NPY_SEARCHSIDE wasn't defined as a type, so it was treating that as the argument name (implicitly typed to be object). https://github.com/cython/cython/commit/5ba30c45c7d3478f7b7d0490e720fb0a184c6050 There should probably be at least a mode to give warnings for untyped arguments (and return types) of cdef functions. - Robert 2011/11/29 Stéfan van der Walt <ste...@sun.ac.za>: > On Tue, Nov 29, 2011 at 9:08 PM, Greg Ewing <greg.ew...@canterbury.ac.nz> > wrote: >> Did you try both together? I.e. >> >> cdef extern from "ndarraytypes.h": >> ctypedef enum NPY_SEARCHSIDE: >> NPY_SEARCHLEFT = 0 >> NPY_SEARCHRIGHT = 1 > > Yeap, no luck :( Does this work on your system? > > Stéfan > _______________________________________________ > cython-devel mailing list > cython-devel@python.org > http://mail.python.org/mailman/listinfo/cython-devel > _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel