projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db0458d
)
Bug in large literal indexing.
author
Robert Bradshaw
<robertwb@math.washington.edu>
Mon, 7 Jun 2010 18:01:23 +0000
(11:01 -0700)
committer
Robert Bradshaw
<robertwb@math.washington.edu>
Mon, 7 Jun 2010 18:01:23 +0000
(11:01 -0700)
tests/run/index.pyx
patch
|
blob
|
history
diff --git
a/tests/run/index.pyx
b/tests/run/index.pyx
index 57046677f176f706fcb6ed49b8070ef325aa3190..2e74c1248fbb660d95fc2840d304b404f38fbc47 100644
(file)
--- 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]