blob: 426e9a6b11e6bfab5a1b71d381fb18ac853105a9 [file] [log] [blame] [edit]
# 1-element tuple with trailing comma must preserve it.
x = (1,)
y = (
1,
)
foo((1,))
bar(1,)
baz([1,])
foo((1,
))
bar(1,
)
baz([1,
])
x = (1, 2, -3,)
y = (
1, 2, -3,
)
foo((1, 2,))
bar(1, 2,)
baz([1, 2,])
foo((1, 2,
))
foo((1, 2, [3]))
bar(1, 2,
)
baz([1, 2,
])
# Implicit tuples
True,False=False,True
(a,b),c=d
c=d,(e,f)