# HG changeset patch # User Paul Boddie # Date 1486597048 -3600 # Node ID 1106e953e653f4ff0cbee1f8959559fc8ece7c53 # Parent 2ef433e2f7c844fa490f0a74d12862de183c6481 Added another test of sequence assignment. diff -r 2ef433e2f7c8 -r 1106e953e653 tests/assign_sequence.py --- a/tests/assign_sequence.py Thu Feb 09 00:36:41 2017 +0100 +++ b/tests/assign_sequence.py Thu Feb 09 00:37:28 2017 +0100 @@ -16,6 +16,9 @@ n = m print n +def h(): + return 7, 8, 9 + f() g(0) # [4, [1, 2, 3], 6] g(1) # [1, 2, 3] @@ -24,12 +27,18 @@ x = l a, b, c = l d, e, f = [1, 2, 3] -print a, b, c # 1, 2, 3 -print d, e, f # 1, 2, 3 + +print a, b, c # 1 2 3 +print d, e, f # 1 2 3 print x # [1, 2, 3] + m = [4, l, 6] if x: n = l else: n = m + print n # [1, 2, 3] + +a, b, c = h() +print a, b, c # 7 8 9