Moving this over to cython-dev. Neal Becker wrote: > Stefan Behnel wrote: >> Neal Becker wrote: >>> Without the cast, I get this message: >>> Py_XINCREF(raw.base) >>> ^ >>> ------------------------------------------------------------ >>> >>> /home/nbecker/raysat/mod/sum.pyx:152:22: Cannot assign type >>> 'python_object.PyObject *' to 'PyObject *' >>> >>> Am I missing some cimport to get the right PyObject? >> Please try commenting out the following line at the beginning of >> numpy.pxd: >> >> from python_object cimport PyObject >> >> Stefan > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > char *data > int ndim "nd" > npy_intp *shape "dimensions" > npy_intp *strides > dtype descr > PyObject* base > ^ > ------------------------------------------------------------ > > /home/nbecker/raysat/mod/numpy.pxd:154:12: 'PyObject' is not a type > identifier
I would have thought that "PyObject" was a builtin type known to Cython by now, but it seems not. I found ticket #320 now, which I think is worth solving by making PyObject a builtin type. http://trac.cython.org/cython_trac/ticket/320 Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
