[Numpy-discussion] Complete and build the example from the "Using Numpy C-API" documentation.

Warren Weckesser warren.weckesser@enthought....
Tue Jul 20 16:50:22 CDT 2010

I would like to take the example shown here:


and complete the code so I can build and test the extension module.  Is 
that example currently correct?  It is slightly different from the older 
example in the numpy book, so someone must have had a reason to change it. 

I've added the C array of PyMethodDefs and the module init function, but 
I'm still searching for the correct #includes for the numpy stuff.  Any 
suggestions (or pointers to similar simple but complete examples) would 
be appreciated.


More information about the NumPy-Discussion mailing list