Files
python-uncompyle6/test/simple_source/bug35/03_double_star_unpack.py
rocky bb45be2dc7 Start to handle 3.5+ BUILD_LIST_UNPACK in call ..
to implement multple star arguments
2018-02-09 03:41:13 -05:00

18 lines
377 B
Python

# Bug in 3.5 is detecting when there is more than
# one * in a call. There is a "BUILD_UNPACK_LIST" instruction used
# to unpack star arguments
def sum(a, b, c, d):
return a + b + c + d
a, b, c = 1, 2, 3
args = (1, 2)
sum(*args, *args)
# FIXME: these is handled incorrectly
# sum(a, *args, *args)
# sum(a, b, *args)
# FIXME: this is handled incorrectly
# (*c,) = (3,4)