On Fri, Oct 29, 2010 at 08:45, Henry Gomersall <[email protected]> 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 have a complete example somewhere. As in, a > set of files for a minimum example that builds and runs.
http://github.com/numpy/numpy/tree/master/doc/newdtype_example/ -- 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
