tests/basics/unpack1.py: Test if *a, = b copies b when b is a list.

This commit is contained in:
Krzysztof Blazewicz 2017-03-04 12:37:26 +01:00 committed by Damien George
parent 38c3778b27
commit 1bd17de4b7

View File

@ -41,7 +41,7 @@ a, *b, c = 24, 25, 26, 27 ; print(a, b)
a = [28, 29]
*b, = a
print(a, b, a == b)
print(a, b, a == b, a is b)
[*a] = [1, 2, 3]
print(a)