Cython has moved to github.

cython-devel

view tests/run/big_indices.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 558ca15580e3
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> test()
3 neg False
4 pos True
5 neg
6 pos
7 neg
8 pos
9 """
11 def test():
12 cdef long neg = -1
13 cdef unsigned long pos = -2 # will be a large positive number
15 print u"neg", neg > 0
16 print u"pos", pos > 0
18 D = { neg: u'neg', pos: u'pos' }
20 print D[<object>neg]
21 print D[<object>pos]
23 print D[neg]
24 print D[pos]