blob: 70a64d22ef033c5553342929ad4b5746389e76d5 [file] [log] [blame]
Tor Norbye3a2425a2013-11-04 10:16:08 -08001def foo():
2 for x, y in [(1, 2)]:
3 print x
4
5def test_vlu():
6 <error descr="Python version 2.6 does not support this syntax. Starred expressions are not allowed as assignment targets in Python 2">*<weak_warning descr="Local variable 'h' value is not used">h</weak_warning></error>, <weak_warning descr="Local variable 't' value is not used">t</weak_warning> = [1, 2, 3] # fail
7
8def test_vlu():
9 <error descr="Python version 2.6 does not support this syntax. Starred expressions are not allowed as assignment targets in Python 2">*h</error>, t = [1, 2, 3] # pass
10 print(t)