Commit 42dad4f3 authored by Stefan Behnel's avatar Stefan Behnel

fix PyObject import in numpy.pxd, added ndarray.base attribute declaration

parent 684feedc
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
DEF _buffer_format_string_len = 255 DEF _buffer_format_string_len = 255
cimport python_buffer as pybuf cimport python_buffer as pybuf
from python_object cimport PyObject from python_ref cimport PyObject
cimport stdlib cimport stdlib
cimport stdio cimport stdio
...@@ -151,6 +151,7 @@ cdef extern from "numpy/arrayobject.h": ...@@ -151,6 +151,7 @@ cdef extern from "numpy/arrayobject.h":
npy_intp *shape "dimensions" npy_intp *shape "dimensions"
npy_intp *strides npy_intp *strides
dtype descr dtype descr
PyObject* base
# Note: This syntax (function definition in pxd files) is an # Note: This syntax (function definition in pxd files) is an
# experimental exception made for __getbuffer__ and __releasebuffer__ # experimental exception made for __getbuffer__ and __releasebuffer__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment