[Numpy-discussion] Updating cython directory to pxd usage: objections?
Stéfan van der Walt
Sat Jun 21 15:49:58 CDT 2008
2008/6/20 Robert Kern <firstname.lastname@example.org>:
>> Are they initializing different copies of the same thing?
> No. "import numpy" is essentially the same as the pure Python
> equivalent; it loads the module and puts it into the namespace.
> cnp.import_array() loads the module (or reuses the already loaded
> one), does not put it into any namespace, but then, most importantly,
> grabs the pointer to the table of function pointers and assigns it to
> the local void** variable. All of the numpy API is made available to
> third-party extension modules by #define macros which look up into
> this table.
Since "import numpy" already sets up the pointer table, is it then
necessary to use import_array?
More information about the Numpy-discussion