Hi Stefan, So here's an ugly answer: put the `cimport numpy as np` before the `import numpy as np`. I've got "clean up the semantics of import vs. cimport" on my todo list, but it's a big ugly ball of sadness, so it's still sitting on the todo list. ;) Probably the first fix is to write a simple pass that moves the cimports up ...
I didn't actually compile the resulting C code (I don't have numpy on this machine), but let me know if that just generates bad C code. -cc _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
