From 0e032cc215a819f854be3ca9ebc82d2e0879ac5f Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 7 Jun 2010 11:01:23 -0700 Subject: [PATCH] Bug in large literal indexing. --- tests/run/index.pyx | 6 ++++++ 1 file changed, 6 insertions(+) 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] -- 2.26.2