diff options
author | Fernando Perez <fperez@fperez.org> | 2008-06-20 18:24:10 +0000 |
---|---|---|
committer | Fernando Perez <fperez@fperez.org> | 2008-06-20 18:24:10 +0000 |
commit | d2d7e7f47eec9ab9575b231f2a3805b788b778ae (patch) | |
tree | 3638d55eb91fb21ad40248384a1d406d44b707d0 /numpy/doc/cython/c_numpy.pxd | |
parent | e4b8851b2dbe54ccc0ee8080cc05449b3771676a (diff) | |
download | numpy-d2d7e7f47eec9ab9575b231f2a3805b788b778ae.tar.gz |
Put import_array() back into the .pyx file.
M. Brett noticed that if it's only in the .pxd file, it does NOT get
included in the auto-generated C code, and will thus not be called at
module initialization time.
Diffstat (limited to 'numpy/doc/cython/c_numpy.pxd')
-rw-r--r-- | numpy/doc/cython/c_numpy.pxd | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/doc/cython/c_numpy.pxd b/numpy/doc/cython/c_numpy.pxd index 08fd8d86e..4a0bd1c01 100644 --- a/numpy/doc/cython/c_numpy.pxd +++ b/numpy/doc/cython/c_numpy.pxd @@ -134,11 +134,3 @@ cdef extern from "numpy/arrayobject.h": void PyArray_ITER_NEXT(flatiter it) void import_array() - -######################################################################## -# Other code (mostly initialization) - -# NumPy must be initialized before any user code is called in the extension -# module. By doing so here, we ensure the users don't have to explicitly -# remember this themselves, and provide a cleaner Cython API. -import_array() |