On Tue, Feb 14, 2012 at 09:30, Pauli Virtanen <[email protected]> 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
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to