Commit 10bc414d authored by Stefan Behnel's avatar Stefan Behnel

added test case from Pyrex rev 96

parent ec5dbe46
__doc__ = u"""
>>> print idx_uint( ["buckle", "my", "shoe"], 2)
shoe
>>> print idx_ulong(["buckle", "my", "shoe"], 2)
shoe
"""
def idx_ulong(seq, i):
cdef unsigned long u
u = i
return seq[u]
def idx_uint(seq, i):
cdef unsigned int u
u = i
return seq[u]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment