| Tor Norbye | 3a2425a | 2013-11-04 10:16:08 -0800 | [diff] [blame^] | 1 | def foo(): |
| 2 | for x, y in [(1, 2)]: |
| 3 | print x |
| 4 | |
| 5 | def 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 | |
| 8 | def 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) |