[Numpy-discussion] numpy, Py_ssize_t, cython and 64 bits python 2.4

Dag Sverre Seljebotn dagss@student.matnat.uio...
Sun Nov 9 17:37:43 CST 2008


Charles R Harris wrote:

> But mixing python types and numpy types is not a good idea, they exist 
> separately and apply to different software. This may be different for 
> the buffer interface, which is likely to cross the boundary, but that is 
> an argument for being very careful on how the buffer interface is dealt 
> with in cython.
> 

Which is why an exception is thrown in this mismatch circumstance -- if 
we weren't careful, the cast would happen, which would be very bad.

-- 
Dag Sverre


More information about the Numpy-discussion mailing list