From 42dad4f349f07f3203fda8a0294a2601fc50268b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 15 Oct 2009 16:11:01 +0200 Subject: [PATCH] fix PyObject import in numpy.pxd, added ndarray.base attribute declaration --- Cython/Includes/numpy.pxd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__ -- 2.26.2