From: Stefan Behnel Date: Thu, 15 Oct 2009 14:11:01 +0000 (+0200) Subject: fix PyObject import in numpy.pxd, added ndarray.base attribute declaration X-Git-Tag: 0.13.beta0~2^2~121^2~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42dad4f349f07f3203fda8a0294a2601fc50268b;p=cython.git fix PyObject import in numpy.pxd, added ndarray.base attribute declaration --- diff --git a/Cython/Includes/numpy.pxd b/Cython/Includes/numpy.pxd index f5776152..fa5eb951 100644 --- a/Cython/Includes/numpy.pxd +++ b/Cython/Includes/numpy.pxd @@ -17,7 +17,7 @@ DEF _buffer_format_string_len = 255 cimport python_buffer as pybuf -from python_object cimport PyObject +from python_ref cimport PyObject cimport stdlib cimport stdio @@ -151,6 +151,7 @@ cdef extern from "numpy/arrayobject.h": npy_intp *shape "dimensions" npy_intp *strides dtype descr + PyObject* base # Note: This syntax (function definition in pxd files) is an # experimental exception made for __getbuffer__ and __releasebuffer__