Cython has moved to github.

cython-devel

view tests/run/unpack.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 ff6249a604c2
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> f(1, (2,), (3,4,5), (6,(7,(8,9))), 0)
3 (8, 9, (8, 9), (6, (7, (8, 9))), 0)
4 """
6 def f(obj1, obj2, obj3, obj4, obj5):
7 obj1, = obj2
8 obj1, obj2 = obj2 + obj2
9 obj1, obj2, obj3 = obj3
10 obj1, (obj2, obj3) = obj4
11 [obj1, obj2] = obj3
12 return obj1, obj2, obj3, obj4, obj5