Open trenta3 opened 3 years ago
# main.py a = [3] print((*a, 7))
transcrypt -m main.py
// [...] export var a=[3]; print(tuple([a, 7]))
which thus produces ([3], 7) and not (3, 7)!
On the other hand
# main.py a = [3] print(tuple(*a, 7))
produces the correct transcryption print(tuple(...a, 7)).
print(tuple(...a, 7))
Transcrypt version: 3.9.0
This seems like it might be a similar behavior as on issue #837, where it works in the function call but not using expression syntax.
transcrypt -m main.py
which thus produces ([3], 7) and not (3, 7)!
On the other hand
produces the correct transcryption
print(tuple(...a, 7))
.Transcrypt version: 3.9.0