Cython has moved to github.

cython-devel

view tests/run/r_uintindex.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 f42603cd5a7c
children
line source
1 __doc__ = u"""
2 >>> print(idx_uint( ["buckle", "my", "shoe"], 2))
3 shoe
4 >>> print(idx_ulong(["buckle", "my", "shoe"], 2))
5 shoe
6 """
8 def idx_ulong(seq, i):
9 cdef unsigned long u
10 u = i
11 return seq[u]
13 def idx_uint(seq, i):
14 cdef unsigned int u
15 u = i
16 return seq[u]