blob: 947306ad17728c828eac5a382adfa958408e39d7 [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)