Bug in large literal indexing.
authorRobert Bradshaw <robertwb@math.washington.edu>
Mon, 7 Jun 2010 18:01:23 +0000 (11:01 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Mon, 7 Jun 2010 18:01:23 +0000 (11:01 -0700)
tests/run/index.pyx

index 57046677f176f706fcb6ed49b8070ef325aa3190..2e74c1248fbb660d95fc2840d304b404f38fbc47 100644 (file)
@@ -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]