[Pyrex] Bug in PySequence indexing
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 30 02:54:16 CEST 2008
Robert Bradshaw wrote:
> cdef unsigned long n = 4000000000
> D = { n: "positive" }
> print D[n]
I'll have to think more about this. I'm not sure what the
right solution is. Maybe only do the optimisation when the
index is a signed int type, or have two different runtime
functions for the signed and unsigned case.
What does your implementation do in the unsigned case?
Fall back on PyObject_GetItem?
--
Greg
More information about the Pyrex
mailing list