a = 1, 2, 3

b = *a,           # assignment - OK
b += *a,          # augmented assignment - syntax error

Need to enclose in parenthesis:

b += (*a,)

Why isn't it allowed with an augmented assignment, while it is OK with a regular assignment?

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to