scipy/scipy — pull request #2435 by patvarilly (2013-05-01 08:52:28+00:00)
Title: Fixed cython.wraparound(False) bug in scipy/spatial/ckdtree.pyx

Two wrapper methods in ckdtree.pyx (query and count_neighbors) were marked with decorator @cython.wraparound(False), but one of them (query) referred to np.shape(x)[-1]. Since these methods are only wrappers to the methods that do the real work (__query and __count_neighbors_traverse) and are not performance critical, I've simply removed the @cython.wraparound(False) wrapper. This preserves code clarity and fixes issue #2427.