blob: 0d3ad8ceec2223d14e5df6a519c9cc52c3e010f5 [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)