Message365023
Hello everyone,
>>> a,*b,*c,*d = range(4)
File "<stdin>", line 1
SyntaxError: two starred expressions in assignment
>>>
>>> a,*b,*c,*d,*e = range(5)
File "<stdin>", line 1
SyntaxError: two starred expressions in assignment
>>>
I think this error message is incomplete. It states that there are two starred assignments but there are more. It might be better if we change it to something less vague like "SyntaxError: more than one starred expressions in assignment." |
|
Date |
User |
Action |
Args |
2020-03-25 20:26:27 | furkanonder | set | recipients:
+ furkanonder, BTaskaya |
2020-03-25 20:26:27 | furkanonder | set | messageid: <1585167987.52.0.347925597304.issue40067@roundup.psfhosted.org> |
2020-03-25 20:26:27 | furkanonder | link | issue40067 messages |
2020-03-25 20:26:27 | furkanonder | create | |
|