Cython has moved to github.

cython-devel

view tests/run/pynumop.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 6309e21af543
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> f()
3 6
4 >>> g()
5 2
6 """
8 def f():
9 obj1 = 1
10 obj2 = 2
11 obj3 = 3
12 obj1 = obj2 * obj3
13 return obj1
15 def g():
16 obj1 = 12
17 obj2 = 6
18 obj3 = 3
19 obj1 = obj2 / obj3
20 return int(obj1)