From: Robert Bradshaw Date: Mon, 7 Jun 2010 18:01:23 +0000 (-0700) Subject: Bug in large literal indexing. X-Git-Tag: 0.13.beta0~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e032cc215a819f854be3ca9ebc82d2e0879ac5f;p=cython.git Bug in large literal indexing. --- diff --git a/tests/run/index.pyx b/tests/run/index.pyx index 57046677..2e74c124 100644 --- a/tests/run/index.pyx +++ b/tests/run/index.pyx @@ -126,3 +126,9 @@ def test_boundscheck(list L, tuple t, object o, unsigned long ix): IndexError: string index out of range """ return L[ix], t[ix], o[ix] + +def large_literal_index(object o): + """ + >>> large_literal_index({1000000000000000000000000000000: "yes"}) + """ + return o[1000000000000000000000000000000]