[Cython] Cython and numpy question(s)

Dag Sverre Seljebotn dagss at student.matnat.uio.no
Fri Jun 26 20:11:28 CEST 2009


evlutte at gmail.com wrote:
> I'm working on a module that will hopefully eventually go to the SAGE 
> project. Here's a snippet of code:
> 
> 
> 
> As far as I can tell from the cython/numpy tutorial, that last line 
> should be legit, but I get this error:
> "complex128 is not a type identifier"

This is a problem with Sage, which ships a different numpy.pxd from 
Cython, so that cimport numpy does something else than in the tutorial. 
There's a thread on sage-dev from some weeks ago, started by Glenn 
Tarbox, where the appropriate Sage ticket is noted down.

-- 
Dag Sverre


More information about the Cython-dev mailing list