mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
bpo-40067: Improve error messages for multiple star expressions in assignments (GH-19168)
Co-Authored-By: Batuhan Taşkaya <isidentical@gmail.com> Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
5c3cda0d1a
commit
cb6534e1a8
4 changed files with 11 additions and 3 deletions
|
@ -3708,7 +3708,7 @@ assignment_helper(struct compiler *c, asdl_seq *elts)
|
|||
}
|
||||
else if (elt->kind == Starred_kind) {
|
||||
return compiler_error(c,
|
||||
"two starred expressions in assignment");
|
||||
"multiple starred expressions in assignment");
|
||||
}
|
||||
}
|
||||
if (!seen_star) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue