New submission from Furkan Önder <furkanon...@protonmail.com>:

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."

----------
components: Interpreter Core
messages: 365023
nosy: BTaskaya, furkanonder
priority: normal
severity: normal
status: open
title: Improve error messages for multiple star expressions in assignment
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40067>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to