From: Stefan Behnel Date: Thu, 17 Jan 2008 21:55:41 +0000 (+0100) Subject: fix tuple unpacking bug X-Git-Tag: 0.9.6.14~47^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39d427925829164bfd57c31da28967a6c5ebaa35;p=cython.git fix tuple unpacking bug --- diff --git a/tests/run/tuplereassign.pyx b/tests/run/tuplereassign.pyx new file mode 100644 index 00000000..31de486f --- /dev/null +++ b/tests/run/tuplereassign.pyx @@ -0,0 +1,20 @@ +__doc__ = """ + >>> test1( (1,2,3) ) + 1 + >>> test3( (1,2,3) ) + 3 + >>> test( (1,2,3) ) + 3 +""" + +def test1(t): + t,a,b = t + return t + +def test3(t): + a,b,t = t + return t + +def test(t): + t,t,t = t + return t