Cython has moved to github.
cython-devel
view tests/run/extended_unpacking_T409.pyx @ 2564:3aa603282788
fix bug 409: use cascaded assignments also for the complete rhs when optimising parallel assignments
| author | Stefan Behnel <scoder@users.berlios.de> |
|---|---|
| date | Fri Oct 23 10:10:14 2009 +0200 (2 years ago) |
| parents | 8f095c790788 |
| children | 82d312a9f1fc |
line source
2 def simple():
3 """
4 >>> simple()
5 ([1, 2], [1, 2])
6 """
7 d = e = [1,2]
8 return d, e
10 def simple_parallel():
11 """
12 >>> simple_parallel()
13 (1, 2, [1, 2], [1, 2])
14 """
15 a, c = d = e = [1,2]
16 return a, c, d, e
18 def extended():
19 """
20 >>> extended()
21 (1, [], 2, [1, 2], [1, 2])
22 """
23 a, *b, c = d = e = [1,2]
24 return a, b, c, d, e
