Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again.

This commit is contained in:
Neal Norwitz 2006-07-12 05:26:17 +00:00
parent 3b9be2ae6f
commit edef2be4af
4 changed files with 14 additions and 2 deletions

View file

@ -531,6 +531,11 @@ n = 0
for x in Squares(10): n = n+x
if n != 285: raise TestFailed, 'for over growing sequence'
result = []
for x, in [(1,), (2,), (3,)]:
result.append(x)
vereq(result, [1, 2, 3])
print 'try_stmt'
### try_stmt: 'try' ':' suite (except_clause ':' suite)+ ['else' ':' suite]
### | 'try' ':' suite 'finally' ':' suite