Cython has moved to github.

cython-devel

view tests/run/tuplereassign.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 e5e9c958a15e
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> test1( (1,2,3) )
3 1
4 >>> test3( (1,2,3) )
5 3
6 >>> test( (1,2,3) )
7 3
8 >>> testnonsense() # doctest: +ELLIPSIS
9 Traceback (most recent call last):
10 TypeError: ...
11 """
13 def test1(t):
14 t,a,b = t
15 return t
17 def test3(t):
18 a,b,t = t
19 return t
21 def test(t):
22 t,t,t = t
23 return t
25 def testnonsense():
26 t,t,t = 1*2
27 return t