[Numpy-discussion] _import_array()

Robert Kern robert.kern@gmail....
Tue Feb 14 03:49:51 CST 2012

On Tue, Feb 14, 2012 at 09:30, Pauli Virtanen <pav@iki.fi> wrote:
> 14.02.2012 10:20, Mads Ipsen kirjoitti:
> [clip]
>> * Should import_array() only be called one time, namely when the main
>> application is started?
> It should be called once when the application is started, before you do
> any other Numpy-using operations.
> http://docs.scipy.org/doc/numpy/reference/c-api.array.html#import_array

Rather, it must be called once in the initialization routine of each
extension module that uses numpy.

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