[Numpy-discussion] Type of init_numpy()?

Bruce Sherwood basherwo at ncsu.edu
Sun Nov 28 13:12:45 EST 2010


Sorry for the confusion. I misspoke. I guess the issue is with
import_array. I'll look more closely at what I'm seeing. Thanks.

Bruce Sherwood

On Sun, Nov 28, 2010 at 10:07 AM, Pauli Virtanen <pav at iki.fi> wrote:
> On Sun, 28 Nov 2010 09:52:05 -0700, Bruce Sherwood wrote:
>> For Python 2.x, init_numpy() was void on all platforms.
>>
>> For Python 3.1, I find experimentally that init_numpy() is int on
>> Windows (but still void on Mac, and I think also void on Ubuntu Linux).
>>
>> Is this a bug?
>
> There is no symbol or function called "init_numpy" in Numpy. What symbol
> did you actually mean?
>
> If you meant "import_array()", it is a macro, which on Python 3 contains
> a "return NULL;" statement and Python 2 a "return;".
>
> --
> Pauli Virtanen
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list