2016-11-19 | Paul Boddie | raw annotate files changeset graph | Introduced multiple locations for invocation target storage since C cannot guarantee the correct ordering of operations in parameter or initialiser lists, thus frustrating the use of a single location. |
1 def f(): 2 l = [1, 2, 3] 3 x = l 4 a, b, c = l 5 d, e, f = [1, 2, 3] 6 print a, b, c 7 print d, e, f 8 print x 9 10 def g(x): 11 l = [1, 2, 3] 12 m = [4, l, 6] 13 if x: 14 n = l 15 else: 16 n = m 17 print n 18 19 l = [1, 2, 3] 20 x = l 21 a, b, c = l 22 d, e, f = [1, 2, 3] 23 print a, b, c 24 print d, e, f 25 print x 26 m = [4, l, 6] 27 if x: 28 n = l 29 else: 30 n = m 31 print n