Cython has moved to github.

cython-devel

view tests/run/longlongindex.pyx @ 1622:4f0327bdebc9

test for temp allocation bug in call
author Robert Bradshaw <robertwb@math.washington.edu>
date Sat Jan 17 01:25:34 2009 -0800 (3 years ago)
parents
children 0310198e281e
line source
1 __doc__ = """
2 >>> D = set_longlong(2**40, 2**50, 2, "yelp")
3 >>> D[2**40]
4 'yelp'
5 >>> D[2**50]
6 'yelp'
7 >>> D[2]
8 'yelp'
9 """
11 ctypedef long long foo
13 def set_longlong(long long ob, foo x, long y, val):
14 tank = {}
15 tank[ob] = val
16 tank[x] = val
17 tank[y] = val
18 return tank