Re: Bug in PySequence indexing

Greg Ewing <[email protected]> Fri, 30 May 2008 10:51:55 +1200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
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