- Original Message
From: Henry Gomersall
To: numpy-discussion
Sent: Fri, October 29, 2010 9:11:41 AM
Subject: [Numpy-discussion] C extension compiling question
I'm trying to get a really simple toy example for a numpy extension
working (you may notice its based on the example i
On Fri, Oct 29, 2010 at 08:45, Henry Gomersall wrote:
> On Fri, 2010-10-29 at 15:33 +0200, Jon Wright wrote:
>>
>> You need to call import_array() in initspam. See:
>> http://docs.scipy.org/doc/numpy-1.5.x/user/c-info.how-to-extend.html
>
> Thanks, that solves it.
>
> It would be really useful to
On Fri, 2010-10-29 at 15:33 +0200, Jon Wright wrote:
>
> You need to call import_array() in initspam. See:
> http://docs.scipy.org/doc/numpy-1.5.x/user/c-info.how-to-extend.html
Thanks, that solves it.
It would be really useful to have a complete example somewhere. As in, a
set of files
Dear Henry,
You need to call import_array() in initspam. See:
http://docs.scipy.org/doc/numpy-1.5.x/user/c-info.how-to-extend.html
HTH,
Jon
On 29/10/2010 15:11, Henry Gomersall wrote:
> I'm trying to get a really simple toy example for a numpy extension
> working (you may notice its based on t
I'm trying to get a really simple toy example for a numpy extension
working (you may notice its based on the example in the numpy docs and
the python extension docs). The code is given below.
The problem I am having is running the module segfaults at any attempt
to access &PyArray_Type (so, as pre