[Pyrex] Bug in PySequence indexing

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 30 00:51:55 CEST 2008


Robert Bradshaw wrote:

>     print sizeof(Py_ssize_t), "==", sizeof(unsigned long)
>     D = { -1: "negative", <unsigned long>-1: "positive" }
>     print D[<unsigned long>-1]

I don't see how that has anything to do with integer
indexing. You've already mangled your -1 by casting it
to an unsigned long in the first place.

-- 
Greg





More information about the Pyrex mailing list