Hi all,
The numpy.pxd included with Cython currently defines npy_intp, so that
we can use it as
cimport numpy as np
np.npy_intp
However, all the other types are defined as np.type_t, e.g., np.int_t.
Would you mind adding np.intp_t and np.uintp_t (while keeping
np.npy_intp for backwards compatibility)?
As a side note, it may be safer to use the definitions of npy_intp and
npy_uintp from the numpy header, rather than Py_ssize_t and Py_size_t.
In some earlier versions of Python (e.g., 2.4), these were not the
same.
Then, I also have a quick question: why is a person allowed to do
cdef extern from something:
ctypedef int Py_ssize_t
when Py_ssize_t is not an int? Is this a Cython-specific idea?
Thanks!
Stéfan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev