[Numpy-discussion] Fwd: PyArray_DescrConverter segfault

Robert Kern robert.kern@gmail....
Thu Jan 1 16:27:40 CST 2009


On Thu, Jan 1, 2009 at 17:25, Igor Sylvester <igorsyl@gmail.com> wrote:
> Robert,
>
> If I import numpy and then import a 3rd party extension module, why does the
> extension module still have to call import_array if numpy sets this array in
> the first place?  I assume that there's a single array of API functions in a
> single python process with multiple extension modules.

Your 3rd party extension module does not know the location of that
array until you call import_array().

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the Numpy-discussion mailing list