Robert Bradshaw wrote:
> On Feb 11, 2009, at 12:47 PM, Lisandro Dalcin wrote:
> 
>>cdef class A:
>>   cdef readonly Py_ssize_t n
> 
> People used to be able to write "ctypedef unsigned  
> long size_t" and have it work.

Only if size_t is actually the size of an unsigned
long on the platform concerned, though. Otherwise
the Python runtime's idea of the struct layout won't
match what is actually there.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to